-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (53 loc) · 1.46 KB
/
docker-compose.yml
File metadata and controls
56 lines (53 loc) · 1.46 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
services:
postgres:
image: postgres:16-alpine
container_name: tdu-src-postgres
restart: unless-stopped
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
POSTGRES_DB: ${POSTGRES_DB:-tdu_src}
ports:
- "${POSTGRES_PORT:-5432}:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
cms:
build:
context: .
dockerfile: apps/cms/Dockerfile
container_name: tdu-src-cms
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
environment:
DATABASE_URL: postgresql://${POSTGRES_USER:-postgres}:${POSTGRES_PASSWORD:-postgres}@postgres:5432/${POSTGRES_DB:-tdu_src}
PAYLOAD_SECRET: ${PAYLOAD_SECRET}
NODE_ENV: ${NODE_ENV:-production}
CMS_SERVER_URL: ${CMS_SERVER_URL:-https://cms.tdu-src.com}
ports:
- "${CMS_PORT:-3001}:3001"
volumes:
- cms_media:/app/apps/cms/media
web:
build:
context: .
dockerfile: apps/web/Dockerfile
container_name: tdu-src-web
restart: unless-stopped
depends_on:
- cms
environment:
NEXT_PUBLIC_CMS_URL: https://cms.tdu-src.com
CMS_INTERNAL_URL: http://cms:3001
NODE_ENV: ${NODE_ENV:-production}
ports:
- "${WEB_PORT:-3000}:3000"
volumes:
postgres_data:
cms_media: