68 lines
1.4 KiB
YAML
68 lines
1.4 KiB
YAML
networks:
|
|
appnet:
|
|
|
|
netgrimoire:
|
|
external: true
|
|
|
|
services:
|
|
postgres:
|
|
image: postgres:17
|
|
restart: unless-stopped
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
POSTGRES_USER: ${DB_USER}
|
|
POSTGRES_PASSWORD: ${DB_PASS}
|
|
POSTGRES_DB: ${DB_NAME}
|
|
volumes:
|
|
- /data/nfs/Baxter/Docker/peekaping/postgres:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U ${DB_USER} -d ${DB_NAME}"]
|
|
interval: 1s
|
|
timeout: 60s
|
|
retries: 60
|
|
networks:
|
|
- appnet
|
|
|
|
migrate:
|
|
image: 0xfurai/peekaping-migrate:latest
|
|
restart: "no"
|
|
env_file:
|
|
- .env
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
networks:
|
|
- appnet
|
|
|
|
server:
|
|
image: 0xfurai/peekaping-server:latest
|
|
restart: unless-stopped
|
|
env_file:
|
|
- .env
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
migrate:
|
|
condition: service_completed_successfully
|
|
networks:
|
|
- appnet
|
|
- netgrimoire
|
|
# healthcheck:
|
|
# test: ["CMD-SHELL", "wget -q http://localhost:8034/api/v1/health || exit 1"]
|
|
# interval: 1s
|
|
# timeout: 60s
|
|
# retries: 60
|
|
|
|
web:
|
|
image: 0xfurai/peekaping-web:latest
|
|
restart: unless-stopped
|
|
networks:
|
|
- appnet
|
|
- netgrimoire
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "curl -f http://localhost:80 || exit 1"]
|
|
interval: 1s
|
|
timeout: 60s
|
|
retries: 60
|
|
|