forked from yuragoit/webAssistantTeam4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (45 loc) · 853 Bytes
/
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
version: '2.1'
services:
postgres_db:
container_name: 'postgres_db'
image: postgres:13.0-alpine
privileged: true
restart: always
ports:
- '5432:5432'
env_file: .env
volumes:
- postgres_data:/var/lib/postgresql/data/
networks:
- db_network
assistant_app:
container_name: assistant_app
restart: always
env_file: .env
build: .
networks:
- db_network
- web_network
volumes:
- ./:/usr/src/app
depends_on:
- postgres_db
nginx:
container_name: nginx
restart: always
image: nginx:latest
ports:
- "5085:5085"
volumes:
- ./nginx:/etc/nginx/conf.d
networks:
- web_network
depends_on:
- postgres_db
networks:
db_network:
driver: bridge
web_network:
driver: bridge
volumes:
postgres_data: