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

39 lines
910 B
YAML

version: '2.4'
services:
nextcloud:
image: nextcloud:fpm
environment:
POSTGRES_DB: nextcloud
POSTGRES_USER: nextcloud
POSTGRES_HOST: postgres
POSTGRES_PASSWORD: ${POSTGRES_DB_PASSWORD}
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"
networks:
- "postgres_net"
- "nextcloud_net"
volumes:
- /var/nextcloud:/var/www/html
web:
image: nginx
restart: always
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
postgres_net:
name: "postgres_net"
external: true