mirror of
https://github.com/wallabag/docker.git
synced 2026-02-26 19:57:54 +01:00
32 lines
1.1 KiB
YAML
32 lines
1.1 KiB
YAML
version: '2'
|
|
services:
|
|
wallabag:
|
|
build:
|
|
context: ../
|
|
image: wallabag:postgresql
|
|
container_name: wallabag
|
|
environment:
|
|
- POSTGRES_PASSWORD__FILE=/run/secrets/postgres_password
|
|
- POSTGRES_USER=my-super-user
|
|
- SYMFONY__ENV__SECRET__FILE=/run/secrets/env_secret
|
|
- SYMFONY__ENV__DATABASE_DRIVER=pdo_pgsql
|
|
- SYMFONY__ENV__DATABASE_HOST=db
|
|
- SYMFONY__ENV__DATABASE_PORT=5432
|
|
- SYMFONY__ENV__DATABASE_NAME=wallabag
|
|
- SYMFONY__ENV__DATABASE_USER=wallabag
|
|
- SYMFONY__ENV__DATABASE_PASSWORD__FILE=/run/secrets/db_password
|
|
ports:
|
|
- "127.0.0.1:80:80"
|
|
# Docker Secrets require Swarm Mode, so we use volumes instead to spoof the behaviour
|
|
volumes:
|
|
- ./credentials/db_password:/run/secrets/db_password
|
|
- ./credentials/postgres_password:/run/secrets/postgres_password
|
|
- ./credentials/env_secret:/run/secrets/env_secret
|
|
db:
|
|
image: postgres:10.3
|
|
environment:
|
|
- POSTGRES_PASSWORD_FILE=/run/secrets/postgres_password
|
|
- POSTGRES_USER=my-super-user
|
|
volumes:
|
|
- ./credentials/postgres_password:/run/secrets/postgres_password
|