-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
57 lines (52 loc) · 939 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
57 lines (52 loc) · 939 Bytes
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
services:
nginx:
image: nginx:alpine
container_name: retro-hunter-nginx
ports:
- "443:443"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/certs:/etc/nginx/certs:ro
depends_on:
- frontend
- api
networks:
- retro-net
restart: unless-stopped
frontend:
build: ./frontend
container_name: retro-hunter-frontend
expose:
- "3000"
networks:
- retro-net
restart: unless-stopped
api:
build: ./backend
container_name: retro-hunter-api
env_file:
- .env
expose:
- "8000"
depends_on:
- db
networks:
- retro-net
restart: unless-stopped
db:
build:
context: ./postgresql
container_name: retro-hunter-db
restart: unless-stopped
env_file:
- .env
volumes:
- pg_data:/var/lib/postgresql
ports:
- "5432:5432"
networks:
- retro-net
networks:
retro-net:
volumes:
pg_data: