-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
52 lines (48 loc) · 959 Bytes
/
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
services:
frontend:
build:
context: .
dockerfile: ./docker/frontend/Dockerfile
ports:
- "3000:3000"
volumes:
- /app/node_modules
- ./frontend:/app
networks:
- app-network
environment:
- CHOKIDAR_USEPOLLING=true
- WATCHPACK_POLLING=true
backend:
build:
context: .
dockerfile: ./docker/backend/Dockerfile
args:
ENV: development
ports:
- "8080:8080"
volumes:
- ./backend:/app
networks:
- app-network
environment:
- CGO_ENABLED=0
depends_on:
- db
db:
image: postgres:15-alpine
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: onpu
volumes:
- ./docker/pgsql:/docker-entrypoint-initdb.d
- ./backend/pgdata:/var/lib/postgresql/data
networks:
- app-network
ports:
- "5432:5432"
volumes:
pgdata:
networks:
app-network: