Migrate wallabag to postgres
This commit is contained in:
parent
2b75b526ac
commit
ccadc7fbfa
1 changed files with 20 additions and 1 deletions
|
@ -7,7 +7,16 @@ services:
|
||||||
environment:
|
environment:
|
||||||
- SYMFONY__ENV__SECRET={{ wallabag_secret }}
|
- SYMFONY__ENV__SECRET={{ wallabag_secret }}
|
||||||
- SYMFONY__ENV__DOMAIN_NAME=https://wallabag.jakehoward.tech
|
- SYMFONY__ENV__DOMAIN_NAME=https://wallabag.jakehoward.tech
|
||||||
- SYMFONY__ENV__FOSUSER_REGISTRATION=true
|
- SYMFONY__ENV__FOSUSER_REGISTRATION=false
|
||||||
|
- POSTGRES_PASSWORD=wallabag
|
||||||
|
- POSTGRES_USER=wallabag
|
||||||
|
- 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=wallabag
|
||||||
|
- POPULATE_DATABASE=true
|
||||||
volumes:
|
volumes:
|
||||||
- /mnt/tank/app-data/wallabag/data:/var/www/wallabag/data
|
- /mnt/tank/app-data/wallabag/data:/var/www/wallabag/data
|
||||||
- /mnt/tank/app-data/wallabag/images:/var/www/wallabag/images
|
- /mnt/tank/app-data/wallabag/images:/var/www/wallabag/images
|
||||||
|
@ -15,6 +24,7 @@ services:
|
||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
- traefik.http.routers.wallabag.rule=Host(`wallabag.jakehoward.tech`)
|
- traefik.http.routers.wallabag.rule=Host(`wallabag.jakehoward.tech`)
|
||||||
depends_on:
|
depends_on:
|
||||||
|
- db
|
||||||
- redis
|
- redis
|
||||||
networks:
|
networks:
|
||||||
- default
|
- default
|
||||||
|
@ -26,6 +36,15 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- /mnt/speed/dbs/redis/wallabag:/data
|
- /mnt/speed/dbs/redis/wallabag:/data
|
||||||
|
|
||||||
|
db:
|
||||||
|
image: postgres:14-alpine
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- /mnt/speed/dbs/postgres/wallabag/:/var/lib/postgresql/data
|
||||||
|
environment:
|
||||||
|
- POSTGRES_PASSWORD=wallabag
|
||||||
|
- POSTGRES_USER=wallabag
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
traefik:
|
traefik:
|
||||||
external: true
|
external: true
|
||||||
|
|
Loading…
Reference in a new issue