-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.prod.yml
More file actions
52 lines (48 loc) · 1.48 KB
/
compose.prod.yml
File metadata and controls
52 lines (48 loc) · 1.48 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
services:
postgres:
image: postgres:17.6
environment:
POSTGRES_DB: ${POSTGRES_DB:-noone}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-noone}
POSTGRES_USER: ${POSTGRES_USER:-noone}
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-noone} -d ${POSTGRES_DB:-noone}"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
volumes:
- postgres-data-prod:/var/lib/postgresql/data
noone-server:
image: ghcr.io/${GHCR_OWNER:-reajason}/noone-server:${NOONE_SERVER_TAG:-latest}
depends_on:
postgres:
condition: service_healthy
environment:
SPRING_DATASOURCE_PASSWORD: ${POSTGRES_PASSWORD:-noone}
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5432/${POSTGRES_DB:-noone}
SPRING_DATASOURCE_USERNAME: ${POSTGRES_USER:-noone}
restart: unless-stopped
noone-web:
image: ghcr.io/${GHCR_OWNER:-reajason}/noone-web:${NOONE_WEB_TAG:-latest}
depends_on:
- noone-server
environment:
HOST: 0.0.0.0
INTERNAL_API_BASE_URL: http://noone-server:8888/api
PORT: 3000
SESSION_SECRET: ${SESSION_SECRET:-change-me}
SESSION_COOKIE_SECURE: ${SESSION_SECRET:-false}
restart: unless-stopped
nginx:
image: nginx:1.29-alpine
depends_on:
- noone-web
- noone-server
ports:
- "80:80"
restart: unless-stopped
volumes:
- ./deploy/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
volumes:
postgres-data-prod: