-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.prod.yaml
More file actions
66 lines (57 loc) · 1.61 KB
/
Copy pathcompose.prod.yaml
File metadata and controls
66 lines (57 loc) · 1.61 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
54
55
56
57
58
59
60
61
62
63
64
65
66
services:
joinmun-web:
container_name: joinmun-web
build:
context: ./web
dockerfile: Dockerfile.prod
# Set environment variables based on the .env file
env_file:
# - .env
- web/.env
environment:
- WATCHPACK_POLLING=true
# - CHOKIDAR_USEPOLLING=true
- NODE_ENV=development
volumes:
- ./web:/app
- /app/node_modules
restart: always
ports:
- 3000:3000
networks:
- joinmun-network
# auth service
# Database for the auth service
backend-db:
image: postgres:17.2-alpine
env_file:
- backend/.env
volumes:
- ./backend/migrations/init.sql:/docker-entrypoint-initdb.d/init.sql # init script
- joinmun-backend-data:/var/lib/postgresql/data
networks:
- joinmun-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U joinmun -d joinmun_backend_db"]
interval: 5s
timeout: 5s
retries: 5
# API for the auth service
backend-api:
build: ./backend
env_file:
- backend/.env
- .env
depends_on:
backend-db:
condition: service_healthy # Ensure DB is ready
volumes:
- ./backend/var/log/joinmun_backend:/var/log/joinmun_backend
networks:
- joinmun-network
ports:
- ${BACKEND_PORT}:${BACKEND_PORT}
networks:
joinmun-network:
volumes:
joinmun-backend-data: