This repository was archived by the owner on Jun 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
97 lines (88 loc) · 2.09 KB
/
docker-compose.yml
File metadata and controls
97 lines (88 loc) · 2.09 KB
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
90
91
92
93
94
95
96
97
version: '3.4'
volumes:
postgres_data: {}
redis_data: {}
rabbit_data: {}
services:
db:
container_name: app_db
build: ./compose/postgres
restart: on-failure
volumes:
- ./compose/postgres/postgresql.conf:/etc/postgresql.conf
- postgres_data:/var/lib/postgresql/data
- ./backups/postgres:/backups
command: postgres -c config_file=/etc/postgresql.conf
env_file:
- ./.envs/.db.env
rabbitmq:
container_name: app_rabbitmq
image: rabbitmq:3.7-alpine
restart: on-failure
volumes:
- rabbit_data:/var/lib/rabbitmq
env_file:
- ./.envs/.rabbitmq.env
redis:
container_name: app_redis
image: redis:4-alpine
restart: on-failure
command: redis-server /usr/local/etc/redis/redis.conf
volumes:
- redis_data:/data
- ./compose/redis/redis.conf:/usr/local/etc/redis/redis.conf
env_file:
- ./.envs/.redis.env
web: &web
container_name: app_web
build:
context: .
dockerfile: ./compose/web/Dockerfile.dev
restart: on-failure
volumes:
- .:/app
- ./staticfiles:/app/staticfiles
ports:
- "8000"
env_file:
- ./.envs/.db.env
- ./.envs/.rabbitmq.env
- ./.envs/.redis.env
- ./.envs/.web.env
depends_on:
- db
- rabbitmq
- redis
command: /start
celery:
<<: *web
container_name: app_celery
volumes:
- .:/app
- ./logs:/var/log/celery
command: /start-celery
nginx:
container_name: app_nginx
build:
context: .
dockerfile: ./compose/nginx/Dockerfile
restart: on-failure
ports:
- "80:80"
volumes:
- ./staticfiles:/staticfiles
- ./compose/nginx/conf.d:/etc/nginx/conf.d:rw
- ./compose/nginx/vhost.d:/etc/nginx/vhost.d:rw
- /var/run/docker.sock:/tmp/docker.sock:ro
env_file:
- ./.envs/.proxy.env
depends_on:
- web
mailhog:
container_name: app_mailhog
image: mailhog/mailhog
ports:
- "8025:8025"
swagger_validator:
container_name: app_swagger_validator
image: swaggerapi/swagger-validator