Files
instance-setup-stuff/pwpush_server-compose_template.yaml

36 lines
975 B
YAML

---
services:
pwpush:
image: pglombardo/pwpush
container_name: pwpush
pull_policy: always
restart: unless-stopped
ports:
- 127.0.0.1:${PORT}:5100
environment:
PWP__MAIL__SMTP_PASSWORD: ${SMTP_PASSWORD}
DATABASE_URL: 'postgres://postgres:${PG_PASS}@postgres:5432/postgres'
volumes:
- ${VOLUME_PATH}/config/${USER}-settings.yaml:/opt/PasswordPusher/config/settings.yml
- type: bind
source: ${VOLUME_PATH}/files
target: /opt/PasswordPusher/storage
bind:
create_host_path: true
depends_on:
- postgres
postgres:
image: docker.io/postgres:16
container_name: 'pwpush-postgres'
pull_policy: always
restart: unless-stopped
volumes:
- type: bind
source: ${VOLUME_PATH}/database
target: /var/lib/postgresql/data
bind:
create_host_path: true
environment:
POSTGRES_PASSWORD: ${PG_PASS}
user: ${PUID}:${PGID}