-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yml
66 lines (60 loc) · 1.37 KB
/
docker-compose-dev.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
version: '2'
services:
nginx:
container_name: nginx
image: nginx:1.19.1
networks:
- color-nw
depends_on:
- react-frontend
- play-backend
ports:
- "80:80"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
postgres:
container_name: postgres
image: postgres:12.4
networks:
- color-nw
volumes:
- postgres-data:/var/lib/postgresql/data
- ./postgres/init.sql:/docker-entrypoint-initdb.d/init.sql
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
play-backend:
container_name: play-backend
build:
context: ./play-backend
dockerfile: Dockerfile
networks:
- color-nw
depends_on:
- postgres
volumes:
- ./play-backend:/root/app
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
react-frontend:
container_name: react-frontend
build:
context: ./react-frontend
dockerfile: Dockerfile.dev
networks:
- color-nw
stdin_open: true
tty: true
depends_on:
- postgres
- play-backend
volumes:
- ./react-frontend/tsconfig.json:/app/tsconfig.json
- ./react-frontend/src:/app/src
- ./react-frontend/public:/app/public
environment:
- CHOKIDAR_USEPOLLING=true
volumes:
postgres-data:
networks:
color-nw: