-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
36 lines (34 loc) · 1.01 KB
/
docker-compose.yaml
File metadata and controls
36 lines (34 loc) · 1.01 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
services:
database:
image: "postgres:17-alpine"
environment:
- "POSTGRES_USER=nexusgate"
- "POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-change_me_in_production}"
- "POSTGRES_DB=nexusgate"
volumes:
- "./db:/var/lib/postgresql/data"
restart: on-failure
healthcheck:
test: ["CMD-SHELL", "pg_isready -U nexusgate -d nexusgate -h localhost"]
interval: 5s
timeout: 5s
retries: 5
start_period: 10s
redis:
image: "redis:alpine"
restart: on-failure
nexusgate:
image: "ghcr.io/em-geeklab/nexusgate:main"
environment:
- "DATABASE_URL=postgres://nexusgate:${POSTGRES_PASSWORD:-change_me_in_production}@database:5432/nexusgate"
- "ADMIN_SUPER_SECRET=${ADMIN_SUPER_SECRET:-admin_key_change_in_production}"
- "REDIS_URL=redis://redis:6379"
restart: on-failure
depends_on:
database:
condition: service_healthy
redis:
condition: service_started
ports:
- "${WEB_PORT:-3000}:3000"
init: true