-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
57 lines (52 loc) · 980 Bytes
/
docker-compose.yaml
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
version: "3.9"
networks:
dev-network:
driver: bridge
services:
db:
image: postgres:latest
container_name: db
env_file:
- ./backend/.env
ports:
- "5432:5432"
volumes:
- ./backend/migrations/000001_init.up.sql:/docker-entrypoint-initdb.d/init.sql
restart: always
networks:
- dev-network
backend:
container_name: backend
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "8080:8080"
restart: always
networks:
- dev-network
depends_on:
- db
frontend:
container_name: frontend
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "3000:3000"
restart: always
networks:
- dev-network
depends_on:
- backend
nginx:
restart: always
build:
context: ./nginx
dockerfile: Dockerfile
ports:
- "4500:4500"
networks:
- dev-network
depends_on:
- frontend