-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
69 lines (63 loc) · 1.17 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
services:
frontend:
build: ./frontend
container_name: frontend
depends_on:
- backend
restart: always
volumes:
- ./frontend:/docker/frontend
ports:
- '80:80'
networks:
- custom
backend:
build: ./backend
container_name: backend
ports:
- '3000'
depends_on:
- postgres
env_file:
- ./backend/.env
restart: always
networks:
- custom
volumes:
- ./backend:/docker/backend
bot:
build: ./bot
restart: always
postgres:
image: postgres:latest
container_name: postgres
environment:
POSTGRES_DB: delearn
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- '5444:5432'
restart: always
networks:
- custom
# nginx:
# image: nginx:alpine
# container_name: nginx
# ports:
# - '80:80'
# depends_on:
# - frontend
# - backend
# volumes:
# - ./frontend/nginx.conf:/etc/nginx/conf.d/app.conf
# restart: always
# networks:
# - custom
volumes:
pgdata:
driver: local
networks:
custom:
driver: bridge