nextlcoud: enable; add redis
This commit is contained in:
parent
2fd63f993a
commit
b8803a8986
|
|
@ -3,11 +3,13 @@ version: '2'
|
||||||
volumes:
|
volumes:
|
||||||
nextcloud:
|
nextcloud:
|
||||||
db:
|
db:
|
||||||
|
redis:
|
||||||
|
driver: local
|
||||||
|
|
||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
image: postgres:15-alpine
|
image: postgres:15-alpine
|
||||||
restart: always
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- db:/var/lib/postgresql/data
|
- db:/var/lib/postgresql/data
|
||||||
env_file:
|
env_file:
|
||||||
|
|
@ -20,16 +22,24 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- nextcloud:/var/www/html
|
- nextcloud:/var/www/html
|
||||||
hostname: cloud.dmeiburg.de
|
hostname: cloud.dmeiburg.de
|
||||||
restart: always
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
OVERWRITEPROTOCOL: https
|
OVERWRITEPROTOCOL: https
|
||||||
POSTGRES_HOST: db
|
POSTGRES_HOST: db
|
||||||
|
REDIS_HOST: redis
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
labels:
|
labels:
|
||||||
caddy: cloud.dmeiburg.de
|
caddy: cloud.dmeiburg.de
|
||||||
caddy.reverse_proxy: "{{upstreams 80}}"
|
caddy.reverse_proxy: "{{upstreams 80}}"
|
||||||
|
|
||||||
|
redis:
|
||||||
|
image: redis:alpine
|
||||||
|
restart: unless-stopped
|
||||||
|
command: --save 60 1 --loglevel warning
|
||||||
|
volumes:
|
||||||
|
- redis:/data
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
default:
|
default:
|
||||||
name: caddy
|
name: caddy
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue