82 lines
1.8 KiB
YAML
82 lines
1.8 KiB
YAML
services:
|
|
nextcloud:
|
|
image: library/nextcloud:fpm
|
|
container_name: nextcloud
|
|
restart: unless-stopped
|
|
networks:
|
|
- proxy
|
|
volumes:
|
|
- nextcloud-data:/var/www/html
|
|
depends_on:
|
|
- postgres-next
|
|
- redis-next
|
|
environment:
|
|
- POSTGRES_DB=nextcloud
|
|
- POSTGRES_USER=nextcloud
|
|
- POSTGRES_PASSWORD=${NEXTCLOUD_POSTGRES_PASSWORD}
|
|
- POSTGRES_HOST=nextcloud-postgres:3232
|
|
- NEXTCLOUD_ADMIN_USER=admin
|
|
- NEXTCLOUD_ADMIN_PASSWORD=admin
|
|
- NEXTCLOUD_TRUSTED_DOMAINS=cloud.chatons.duckdns.org
|
|
- NEXTCLOUD_TRUSTED_PROXIES=caddy
|
|
- OVERWRITEPROTOCOL=https
|
|
- OVERWRITECLIURL=https://cloud.chatons.duckdns.org
|
|
security_opt:
|
|
- no-new-privileges:true
|
|
|
|
|
|
postgres-next:
|
|
image: library/postgres
|
|
container_name: nextcloud-postgres
|
|
read_only: true
|
|
restart: unless-stopped
|
|
tmpfs:
|
|
- /tmp
|
|
- /run/postgresql
|
|
volumes:
|
|
- nextcloud-postgres:/var/lib/postgresql
|
|
networks:
|
|
- proxy
|
|
environment:
|
|
- POSTGRES_USER=nextcloud
|
|
- POSTGRES_PASSWORD=${NEXTCLOUD_POSTGRES_PASSWORD}
|
|
- POSTGRES_DB=nextcloud
|
|
- PGPORT=3232
|
|
- REDIS_HOST=redis-next
|
|
- REDIS_HOST_PASSWORD=password
|
|
security_opt:
|
|
- no-new-privileges:true
|
|
|
|
redis-next:
|
|
image: library/redis
|
|
container_name: redis
|
|
read_only: true
|
|
restart: unless-stopped
|
|
command: redis-server
|
|
ports:
|
|
- '6379:6379'
|
|
tmpfs:
|
|
- /tmp
|
|
volumes:
|
|
- redis-data:/data
|
|
environment:
|
|
- REDIS_ARGS=--requirepass password --appendonly yes
|
|
networks:
|
|
- proxy
|
|
security_opt:
|
|
- no-new-privileges:true
|
|
|
|
|
|
|
|
volumes:
|
|
nextcloud-data:
|
|
name: nextcloud-data
|
|
redis-data:
|
|
name: redis-data
|
|
nextcloud-postgres:
|
|
name: nextcloud-postgres
|
|
|
|
networks:
|
|
proxy:
|
|
name: proxy
|
|
external: true |