legacy-server-config/nextcloud/docker-compose.yml

49 lines
1.1 KiB
YAML
Raw Normal View History

2021-01-01 15:09:53 +00:00
version: '2.4'
services:
redis:
image: redis:6.2.0
restart: unless-stopped
volumes:
- /var/redis:/data
networks:
- "nextcloud_net"
2021-01-01 15:09:53 +00:00
nextcloud:
build: ./nextcloud-fpm
restart: unless-stopped
2021-01-01 15:09:53 +00:00
environment:
2021-01-17 16:37:14 +00:00
POSTGRES_DB: nextcloud
POSTGRES_USER: nextcloud
2021-01-31 19:52:24 +00:00
POSTGRES_HOST: postgres
2021-01-17 16:37:14 +00:00
POSTGRES_PASSWORD: ${POSTGRES_DB_PASSWORD}
2021-01-01 15:09:53 +00:00
TRUSTED_PROXIES: "cloud.teier.eu 138.201.74.231 172.0.0.1/8"
APACHE_DISABLE_REWRITE_IP: "1"
OVERWRITEHOST: "cloud.teier.eu"
OVERWRITEPROTOCOL: "https"
OVERWRITEWEBROOT: "/"
OVERWRITECONADDR: "138.201.74.231"
REDIS_HOST: redis
2021-01-01 15:09:53 +00:00
networks:
2021-01-17 16:37:14 +00:00
- "postgres_net"
2021-01-01 15:09:53 +00:00
- "nextcloud_net"
volumes:
- /var/nextcloud:/var/www/html
- /mnt/mathias:/mnt/mathias
- /mnt/public:/mnt/public
2021-01-01 15:09:53 +00:00
web:
image: nginx
restart: unless-stopped
2021-01-01 15:09:53 +00:00
ports:
- 8081:80
networks:
- "nextcloud_net"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
volumes_from:
- nextcloud
networks:
nextcloud_net:
name: "nextcloud_net"
driver: bridge
2021-01-31 19:52:24 +00:00
postgres_net:
2021-01-17 16:37:14 +00:00
name: "postgres_net"
external: true