forked from pplonski/simple-tasks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
97 lines (96 loc) · 2.53 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
90
91
92
93
94
95
96
97
version: '2'
services:
nginx:
restart: always
image: nginx:1.12-alpine
ports:
- 8000:8000
volumes:
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
- static_volume:/app/backend/server/django_static
client:
build:
context: .
dockerfile: ./docker/client/Dockerfile
restart: always
ports:
- 5001:5000
expose:
- 5000
postgres:
restart: always
image: postgres:9.5.6-alpine
volumes:
- ./docker/postgres/data:/var/lib/postgresql
ports:
- 5433:5432
expose:
- 5432
environment:
FILLA_DB_USER: tasks_user
FILLA_DB_PASSWORD: tasks_password
FILLA_DB_DATABASE: simple_tasks
POSTGRES_USER: postgres
volumes:
- ./docker/postgres/init-user-db.sh:/docker-entrypoint-initdb.d/init-user-db.sh
redis:
image: redis:3.0-alpine
restart: unless-stopped
ports:
- 6378:6379
rabbitmq:
image: rabbitmq:3.7-alpine
restart: unless-stopped
wsgiserver:
extends:
file: docker-common.yml
service: backend
entrypoint: /app/docker/backend/wsgi-entrypoint.sh
volumes:
- static_volume:/app/backend/server/django_static
links:
- postgres
- redis
- rabbitmq
expose:
- 8000
asgiserver:
extends:
file: docker-common.yml
service: backend
entrypoint: /app/docker/backend/asgi-entrypoint.sh
links:
- postgres
- redis
- rabbitmq
expose:
- 9000
worker:
extends:
file: docker-common.yml
service: backend
entrypoint: /app/docker/backend/worker-entrypoint.sh
links:
- postgres
- redis
- rabbitmq
redislistener:
extends:
file: docker-common.yml
service: backend
entrypoint: /app/docker/backend/redis-listener-entrypoint.sh
links:
- postgres
- redis
- rabbitmq
workerlistener:
extends:
file: docker-common.yml
service: backend
entrypoint: /app/docker/backend/worker-listener-entrypoint.sh
links:
- postgres
- redis
- rabbitmq
volumes:
static_volume: {}