install.fairie/home/dot_config/docker/templates/statping/docker-compose.yml.tmpl

80 lines
1.8 KiB
Cheetah
Raw Normal View History

---
version: '3.7'
services:
statup:
container_name: StatPing
2024-01-02 17:40:12 -08:00
image: adamboutcher/statping-ng:latest
restart: unless-stopped
depends_on:
- postgres
networks:
- statping_network
- nginx_network
2024-01-02 17:40:12 -08:00
ports:
- "8072:8072"
volumes:
- statping_app:/app
2024-01-02 17:40:12 -08:00
- services.yml:/app/services.yml
environment:
VIRTUAL_HOST: localhost
2024-01-02 17:40:12 -08:00
VIRTUAL_PORT: 8072
DB_CONN: postgres
DB_HOST: postgres
2024-01-12 23:47:07 -08:00
ADMIN_USER: admin
2024-01-02 17:40:12 -08:00
ADMIN_PASSWORD_FILE: /run/secrets/statping_admin_password
API_SECRET_FILE: /run/secrets/statping_api_secret
2024-01-12 23:47:07 -08:00
DB_USER: statuser
DB_PASS_FILE: /run/secrets/statping_database_password
2024-01-12 23:47:07 -08:00
DB_DATABASE: statdb
NAME: "{{ .docker.statping.name }}"
DESCRIPTION: "{{ .docker.statping.description }}"
2024-01-02 17:40:12 -08:00
DOMAIN: "status.{{ .host.domain }}"
deploy:
mode: replicated
replicas: 1
secrets:
2024-01-02 17:40:12 -08:00
- statping_admin_password
- statping_api_secret
- statping_database_password
postgres:
container_name: Postgres
image: postgres:10
restart: unless-stopped
volumes:
- statping_postgres:/var/lib/postgresql/data
networks:
- statping_network
environment:
POSTGRES_PASSWORD_FILE: /run/secrets/statping_database_password
2024-01-12 23:47:07 -08:00
POSTGRES_USER: statuser
POSTGRES_DB: statdb
deploy:
mode: replicated
replicas: 1
secrets:
- statping_database_password
networks:
statping_network:
driver: overlay
attachable: true
internal: true
nginx_network:
external: true
secrets:
2024-01-02 17:40:12 -08:00
statping_admin_password:
external: true
statping_api_secret:
external: true
statping_database_password:
external: true
volumes:
statping_app:
name: statping_app
statping_postgres:
name: statping_postgres