2019-10-04 09:50:26 +00:00
|
|
|
---
|
|
|
|
version: '3.2'
|
|
|
|
|
|
|
|
services:
|
|
|
|
postgresql:
|
2020-10-01 08:42:38 +00:00
|
|
|
image: postgres:12
|
2019-10-04 09:50:26 +00:00
|
|
|
volumes:
|
|
|
|
- database:/var/lib/postgresql/data
|
|
|
|
networks:
|
|
|
|
- internal
|
|
|
|
environment:
|
|
|
|
- POSTGRES_PASSWORD=${PG_PASS:-thisisnotagoodpassword}
|
|
|
|
- POSTGRES_USER=passbook
|
|
|
|
- POSTGRES_DB=passbook
|
|
|
|
labels:
|
|
|
|
- traefik.enable=false
|
2020-09-14 20:54:25 +00:00
|
|
|
env_file:
|
|
|
|
- .env
|
2019-10-04 09:50:26 +00:00
|
|
|
redis:
|
|
|
|
image: redis
|
|
|
|
networks:
|
|
|
|
- internal
|
|
|
|
labels:
|
|
|
|
- traefik.enable=false
|
|
|
|
server:
|
2020-10-11 17:57:03 +00:00
|
|
|
image: beryju/passbook:${PASSBOOK_TAG:-0.11.0-stable}
|
2020-09-02 22:04:12 +00:00
|
|
|
command: server
|
2019-10-04 09:50:26 +00:00
|
|
|
environment:
|
2020-09-02 22:04:12 +00:00
|
|
|
PASSBOOK_REDIS__HOST: redis
|
|
|
|
PASSBOOK_POSTGRESQL__HOST: postgresql
|
2020-09-14 20:54:25 +00:00
|
|
|
PASSBOOK_POSTGRESQL__PASSWORD: ${PG_PASS}
|
2019-10-04 09:50:26 +00:00
|
|
|
ports:
|
|
|
|
- 8000
|
|
|
|
networks:
|
|
|
|
- internal
|
|
|
|
labels:
|
|
|
|
- traefik.port=8000
|
|
|
|
- traefik.docker.network=internal
|
|
|
|
- traefik.frontend.rule=PathPrefix:/
|
2020-09-14 20:54:25 +00:00
|
|
|
env_file:
|
|
|
|
- .env
|
2019-10-04 09:50:26 +00:00
|
|
|
worker:
|
2020-10-11 17:57:03 +00:00
|
|
|
image: beryju/passbook:${PASSBOOK_TAG:-0.11.0-stable}
|
2020-09-02 22:04:12 +00:00
|
|
|
command: worker
|
2019-10-04 09:50:26 +00:00
|
|
|
networks:
|
|
|
|
- internal
|
|
|
|
labels:
|
|
|
|
- traefik.enable=false
|
|
|
|
environment:
|
2020-09-02 22:04:12 +00:00
|
|
|
PASSBOOK_REDIS__HOST: redis
|
|
|
|
PASSBOOK_POSTGRESQL__HOST: postgresql
|
2020-09-14 20:54:25 +00:00
|
|
|
PASSBOOK_POSTGRESQL__PASSWORD: ${PG_PASS}
|
2020-10-03 18:36:36 +00:00
|
|
|
volumes:
|
|
|
|
- ./backups:/backups
|
2020-10-05 21:11:44 +00:00
|
|
|
- /var/run/docker.socket:/var/run/docker.socket
|
2020-09-14 20:54:25 +00:00
|
|
|
env_file:
|
|
|
|
- .env
|
2019-10-04 09:50:26 +00:00
|
|
|
static:
|
2020-10-11 17:57:03 +00:00
|
|
|
image: beryju/passbook-static:${PASSBOOK_TAG:-0.11.0-stable}
|
2019-10-04 09:50:26 +00:00
|
|
|
networks:
|
|
|
|
- internal
|
|
|
|
labels:
|
2020-07-08 11:18:08 +00:00
|
|
|
- traefik.frontend.rule=PathPrefix:/static, /robots.txt, /favicon.ico
|
2020-05-16 18:39:38 +00:00
|
|
|
- traefik.port=80
|
2019-10-04 09:50:26 +00:00
|
|
|
- traefik.docker.network=internal
|
|
|
|
traefik:
|
|
|
|
image: traefik:1.7
|
2020-06-16 19:34:48 +00:00
|
|
|
command: --api --docker --defaultentrypoints=https --entryPoints='Name:http Address::80 Redirect.EntryPoint:https' --entryPoints='Name:https Address::443 TLS'
|
2019-10-04 09:50:26 +00:00
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
|
|
ports:
|
|
|
|
- "0.0.0.0:80:80"
|
|
|
|
- "0.0.0.0:443:443"
|
2020-06-16 19:34:48 +00:00
|
|
|
- "127.0.0.1:8080:8080"
|
2019-10-04 09:50:26 +00:00
|
|
|
networks:
|
|
|
|
- internal
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
database:
|
|
|
|
driver: local
|
|
|
|
|
|
|
|
networks:
|
|
|
|
internal: {}
|