-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
82 lines (79 loc) · 1.39 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
version: '3.2'
networks :
my_network:
driver: bridge
volumes:
backend:
driver: local
name: volume_backend
db:
services:
gateway:
image: nginx
container_name: gateway
volumes:
- ./.conf/nginx/conf:/etc/nginx/conf.d:ro
ports:
- "80:80"
- "443:443"
networks:
- my_network
depends_on:
#- db
- backend
- frontend
- websocket
#- adminer
#db:
# image: postgres
# environment:
# POSTGRES_PASSWORD: r00T1453!
# PGDATA: /var/lib/postgresql/data/db-files/
# volumes:
# - db:/var/lib/postgresql/data/db-files/
# networks:
# - my_network
#adminer:
# image: adminer
# restart: always
# ports:
# - 8080:8080
# networks:
# - my_network
websocket:
env_file:
- ./.env
build:
context: ./websocket
dockerfile: Dockerfile
networks:
- my_network
expose:
- 8000
backend:
env_file:
- ./.env
build:
context: ./backend
dockerfile: Dockerfile
container_name: my_backend
restart: always
expose:
- 8000
volumes:
- backend:/app/media
networks:
- my_network
#depends_on:
# - db
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: my_frontend
expose:
- 8000
networks:
- my_network
ports:
- "8000:8000"