68 lines
1.2 KiB
YAML
68 lines
1.2 KiB
YAML
---
|
|
services:
|
|
install_site:
|
|
build: install_site
|
|
environment:
|
|
- BASE_URL
|
|
- EMAIL
|
|
volumes:
|
|
- ./nginx.conf:/web/nextcloud.conf
|
|
- sites:/sites/
|
|
- certs:/etc/letsencrypt/
|
|
- certbotroot:/var/www/certbot/
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
db:
|
|
image: docker.io/postgres:15
|
|
restart: unless-stopped
|
|
volumes:
|
|
- db:/var/lib/postgresql/data/
|
|
environment:
|
|
- POSTGRES_DB
|
|
- POSTGRES_USER
|
|
- POSTGRES_PASSWORD
|
|
|
|
redis:
|
|
image: docker.io/redis:latest
|
|
restart: unless-stopped
|
|
|
|
nextcloud:
|
|
build: .
|
|
restart: unless-stopped
|
|
volumes:
|
|
- nextcloud:/var/www/html/
|
|
- apps:/var/www/html/custom_apps/
|
|
- config:/var/www/html/config/
|
|
- data:/var/www/html/data/
|
|
- $MEDIA_PATH:/media/
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
- POSTGRES_HOST=db
|
|
- REDIS_HOST=redis
|
|
- TRUSTED_PROXIES=nextcloud
|
|
- OVERWRITEPROTOCOL=https
|
|
networks:
|
|
- nginx
|
|
- default
|
|
depends_on:
|
|
- db
|
|
- redis
|
|
|
|
volumes:
|
|
db:
|
|
nextcloud:
|
|
apps:
|
|
config:
|
|
data:
|
|
sites:
|
|
external: true
|
|
certs:
|
|
external: true
|
|
certbotroot:
|
|
external: true
|
|
|
|
networks:
|
|
nginx:
|
|
external: true
|