Docker-Davinci-Resolve-Proj.../docker-compose.yml

71 lines
1.9 KiB
YAML
Raw Normal View History

2022-05-30 23:58:05 +00:00
---
version: '3.8'
x-common:
database: &db-environment
POSTGRES_DB: database
POSTGRES_USER: postgres
POSTGRES_PASSWORD: DaVinci
TZ: America/Chicago
2022-07-29 22:14:20 +00:00
POSTGRES_LOCATION: &db-location "~/db:/var/lib/postgresql/data"
backup: &backup-environment
SCHEDULE: "@daily"
BACKUP_KEEP_DAYS: 7
BACKUP_KEEP_WEEKS: 4
BACKUP_KEEP_MONTHS: 6
2022-07-29 22:14:20 +00:00
BACKUP_LOCATION: &bk-location "~/backups:/backups"
admin: &admin-environment
PGADMIN_DEFAULT_EMAIL: admin@admin.com
PGADMIN_DEFAULT_PASSWORD: root
2022-07-29 21:23:29 +00:00
PGADMIN_PORT: &pgadmin-port "3001:80"
#
# ------------------------------------------------------------------------------------------
# DANGER ZONE BELOW
#
# The remainder of this file likely does not need to be changed. Please only make modifications
# below if you understand what you are doing.
#
2021-11-27 22:13:03 +00:00
services:
postgres:
2022-07-29 22:26:30 +00:00
container_name: resolve_pgsql
image: postgres:13
2021-11-27 22:13:03 +00:00
restart: always
ports:
- "5432:5432"
environment:
<<: [*db-environment]
2021-11-27 22:13:03 +00:00
volumes:
- *db-location
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
2021-11-27 22:13:03 +00:00
pgbackups:
2022-07-29 22:26:30 +00:00
container_name: resolve_pgbackup
image: prodrigestivill/postgres-backup-local:13
2021-11-27 22:13:03 +00:00
restart: always
volumes:
- *bk-location
2022-07-30 00:07:03 +00:00
depends_on:
2021-11-27 22:13:03 +00:00
- postgres
environment:
<<: [*db-environment, *backup-environment]
POSTGRES_HOST: postgres
POSTGRES_EXTRA_OPTS: --blobs --format=custom --quote-all-identifiers
BACKUP_SUFFIX: .backup
HEALTHCHECK_PORT: 8080
2022-07-30 00:07:03 +00:00
healthcheck:
interval: 30s
pgadmin:
2022-07-29 22:27:22 +00:00
container_name: resolve_pgadmin
image: dpage/pgadmin4
restart: always
environment:
<<: [*admin-environment]
ports:
2022-07-29 21:23:29 +00:00
- *pgadmin-port
2022-07-30 00:07:03 +00:00
depends_on:
- postgres
healthcheck:
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost/ || exit 1"]