-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (55 loc) · 1.69 KB
/
Copy pathdocker-compose.yml
File metadata and controls
59 lines (55 loc) · 1.69 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
services:
postgres:
image: postgres:16-alpine
container_name: shadowschema-postgres
restart: unless-stopped
environment:
POSTGRES_USER: ${POSTGRES_USER:-shadowschema}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-shadowschema}
POSTGRES_DB: ${POSTGRES_DB:-shadowschema}
volumes:
- shadowschema-postgres:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-shadowschema} -d ${POSTGRES_DB:-shadowschema}"]
interval: 5s
timeout: 5s
retries: 10
nginx:
image: nginx:1.27-alpine
container_name: shadowschema-nginx
restart: unless-stopped
ports:
- "8080:80"
volumes:
- ./docker/nginx.conf:/etc/nginx/nginx.conf:ro
- ./docker/default.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
dashboard:
condition: service_started
proxy:
condition: service_started
proxy:
image: ${SHADOWSCHEMA_IMAGE:-ghcr.io/notfixingit3/shadowschema:beta}
pull_policy: always
container_name: shadowschema-proxy
restart: unless-stopped
environment:
DATABASE_URL: postgres://${POSTGRES_USER:-shadowschema}:${POSTGRES_PASSWORD:-shadowschema}@postgres:5432/${POSTGRES_DB:-shadowschema}?sslmode=disable
volumes:
- shadowschema-certs:/app/certs
ports:
- "38080:38080"
- "38081:38081"
depends_on:
postgres:
condition: service_healthy
dashboard:
image: ${SHADOWSCHEMA_DASHBOARD_IMAGE:-ghcr.io/notfixingit3/shadowschema-dashboard:beta}
pull_policy: always
container_name: shadowschema-dashboard
restart: unless-stopped
expose:
- "8080"
volumes:
shadowschema-postgres:
shadowschema-certs: