-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
59 lines (53 loc) · 1 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
version: '3'
services:
web-frontend:
build: ./demo-app
image: dtr-frontend
restart: always
ports:
- "9500:80"
web-backend:
build: ./mt_site
image: mt-poc-backend:latest
entrypoint: /code/web-entrypoint.sh
restart: always
depends_on:
- postgres-db
- redis-db
ports:
- "9000:9000"
expose:
- "9000"
celery:
image: mt-poc-backend:latest
entrypoint: /code/celery-entrypoint.sh
restart: always
depends_on:
- redis-db
- web-backend
postgres-db:
restart: always
build: ./db
image: mt-poc-postgres-db
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
expose:
- "5432"
ports:
- "9700:5432"
volumes:
- pg-data:/var/lib/postgresql/data/
redis-db:
restart: always
image: redis:6
expose:
- "6379"
ports:
- "9600:6379"
volumes:
- redis-data:/data
volumes:
pg-data:
redis-data: