docker-dotclear/exemple/compose/volume/pgsql/docker-compose.yml

42 lines
1 KiB
YAML
Raw Permalink Normal View History

2024-12-06 17:39:18 +00:00
services:
dcstabledb:
image: postgres
container_name: dcstabledb
restart: unless-stopped
environment:
POSTGRES_PASSWORD: dcstable_pwd
POSTGRES_USER: dcstable_user
POSTGRES_DB: dcstable_db
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
2024-12-13 17:06:09 +00:00
- dcstable_db:/var/lib/postgresql/data
2024-12-06 17:39:18 +00:00
healthcheck:
test: [ "CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}" ]
interval: 1s
timeout: 5s
retries: 10
dcstableapp:
image: jcpd/docker-dotclear:latest
container_name: dcstableapp
restart: unless-stopped
ports:
- 80:80
volumes:
2024-12-13 17:06:09 +00:00
- dcstable_app:/var/www/dotclear
2024-12-06 17:39:18 +00:00
depends_on:
dcstabledb:
condition: service_healthy
environment:
DC_DBDRIVER: pgsql
DC_DBHOST: dcstabledb
DC_DBNAME: dcstable_db
DC_DBUSER: dcstable_user
DC_DBPASSWORD: dcstable_pwd
DC_DBPREFIX: dc_
DC_ADMINMAILFROM: contact@exemple.com
volumes:
2024-12-13 17:06:09 +00:00
dcstable_db:
dcstable_app: