-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
55 lines (49 loc) · 929 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
version: '3'
services:
backend:
container_name: backend
build:
context: .
dockerfile: apps/docker/backend/Dockerfile
ports:
- "8000:8000"
env_file:
- ./.env
depends_on:
- db
db:
container_name: db
image: postgres:15-alpine
ports:
- "5432:5432"
env_file:
- ./.env
volumes:
- db-data:/var/lib/postgresql/data
frontend:
container_name: frontend
build:
context: .
dockerfile: apps/docker/frontend/Dockerfile
ports:
- "3000:3000"
volumes:
- node_modules:/apps/frontend/node_modules
env_file:
- ./.env
nginx:
container_name: nginx
build:
context: .
dockerfile: apps/docker/nginx/Dockerfile
ports:
- "80:80"
volumes:
- static:/apps/backend/static
depends_on:
- backend
- frontend
volumes:
db-data:
node_modules:
static: