-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
89 lines (80 loc) · 2.11 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
services:
web:
build:
context: .
dockerfile: web/backend/Dockerfile
volumes:
- ./:/home/user/app/
- /tmp:/tmp
user: "1000:1000"
ports:
- "8000:8000"
env_file: web/backend/local_dev.env
container_name: {{project_name}}_web
# depends_on:
# - db
# - rabbit
# - memcache
# - redis
frontend:
build:
dockerfile: web/frontend/Dockerfile
context: .
volumes:
- .:/app/
- /app/node_modules
ports:
- "3000:3000"
container_name: {{project_name}}_frontend
# db:
# image: postgres:16-alpine
# environment:
# POSTGRES_HOST_AUTH_METHOD: trust
# volumes:
# - ./dev/1_create_postgres_user.sql:/docker-entrypoint-initdb.d/1_create_user.sql
# - ./dev/2_create_postgres_db.sql:/docker-entrypoint-initdb.d/2_create_db.sql
# - {{ project_name }}_pgdata:/var/lib/postgresql/data
# ports:
# - "5432:5432"
# container_name: {{project_name}}_db
# rabbit:
# image: rabbitmq:alpine
# container_name: {{project_name}}_rabbitmq
# memcache:
# image: memcached:latest
# ports:
# - "11211:11211"
# entrypoint:
# - memcached
# - -m 64
# container_name: {{project_name}}_cache
# Uncomment `redis` and `celery` services below if you plan to use
# celery tasks and background processing
# redis:
# image: 'bitnami/redis:latest'
# ports:
# - 6379:6379
# environment:
# - ALLOW_EMPTY_PASSWORD=yes
# container_name: {{project_name}}_redis
# celery:
# build:
# dockerfile: web/backend/Dockerfile
# context: .
# command: python manage.py celery
# volumes:
# - ./:/home/user/app/
# env_file: web/backend/local_dev.env
# depends_on:
# - redis
# container_name: {{project_name}}_celery
# service for faking a SMTP server
# uncomment if you want to debug sending emails locally
# mailhog:
# image: mailhog/mailhog
# ports:
# - '1025:1025' # smtp server
# - '8025:8025' # web ui
# container_name: {{project_name}}_mailhog
#volumes:
# {{project_name}}_pgdata: