-
Notifications
You must be signed in to change notification settings - Fork 151
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (51 loc) · 1.55 KB
/
Copy pathdocker-compose.yml
File metadata and controls
54 lines (51 loc) · 1.55 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
services:
postgres:
image: postgres:18-alpine
container_name: nginx-ignition-postgres
restart: unless-stopped
environment:
POSTGRES_DB: nginx_ignition
POSTGRES_USER: nginx_ignition
POSTGRES_PASSWORD: PlaceYourSuperSecretDatabasePasswordHere
volumes:
- nginx_ignition_postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U nginx_ignition"]
interval: 5s
timeout: 5s
retries: 3
networks:
- nginx-ignition-network
nginx-ignition:
image: dillmann/nginx-ignition:latest
container_name: nginx-ignition-app
restart: unless-stopped
ports:
- "8090:8090"
- "80:80"
- "443:443"
environment:
NGINX_IGNITION_DATABASE_DRIVER: postgres
NGINX_IGNITION_DATABASE_HOST: postgres
NGINX_IGNITION_DATABASE_PORT: 5432
NGINX_IGNITION_DATABASE_NAME: nginx_ignition
NGINX_IGNITION_DATABASE_SSL_MODE: disable
NGINX_IGNITION_DATABASE_USERNAME: nginx_ignition
NGINX_IGNITION_DATABASE_PASSWORD: PlaceYourSuperSecretDatabasePasswordHere
NGINX_IGNITION_SECURITY_JWT_SECRET: PlaceYourSecretJwtPrivateKeyHereButRememberThatShouldHave64Chars
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8090/api/health/liveness"]
interval: 5s
timeout: 5s
retries: 3
networks:
- nginx-ignition-network
networks:
nginx-ignition-network:
driver: bridge
volumes:
nginx_ignition_postgres_data:
driver: local