-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (50 loc) · 1.05 KB
/
docker-compose.yml
File metadata and controls
53 lines (50 loc) · 1.05 KB
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
services:
frontend:
build: ./frontend-v2
container_name: san-2025-fe
ports:
- 7005:7005
networks:
- san-2025-network
backend:
build: ./backend
container_name: san-2025-be
restart: always
ports:
- 7004:3000
depends_on:
- db
environment:
- NODE_ENV=production
- BASE_URL=https://dev.api.socialdance.id
- APP_PORT=3000
- DB_HOST=db
- DB_PORT=5432
- DB_NAME=san_2025
- DB_USERNAME=postgres
- DB_PASSWORD=postgres
- JWT_SECRET=san2025jwt
networks:
- san-2025-network
volumes:
- ./backend/public/uploads:/app/public/uploads
db:
container_name: postgres-db
image: postgres:14
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- ./initdb:/docker-entrypoint-initdb.d
- db_data:/var/lib/postgresql/data
ports:
- 7003:5432
networks:
- san-2025-network
networks:
san-2025-network:
driver: bridge
volumes:
db_data:
driver: local