0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2024-10-01 08:52:37 +02:00
nextcloud-docker/.examples/docker-compose/with-nginx-proxy/postgres/apache/docker-compose.yml

121 lines
3.3 KiB
YAML
Raw Normal View History

2017-08-02 11:52:53 +02:00
version: '3'
2017-08-25 17:18:25 +02:00
services:
2017-08-02 11:52:53 +02:00
db:
image: postgres:alpine
2017-08-25 17:18:25 +02:00
restart: always
volumes:
2023-11-19 22:27:42 +01:00
- /apps/ncapache/db:/var/lib/postgresql/data:Z
- /etc/localtime:/etc/localtime:z,ro
- /etc/timezone:/etc/timezone:z,ro
2017-08-25 17:18:25 +02:00
env_file:
- db.env
2017-08-02 11:52:53 +02:00
2021-04-26 19:15:37 +02:00
redis:
image: redis:alpine
restart: always
2023-11-19 22:27:42 +01:00
sysctls:
- net.core.somaxconn=65535
volumes:
- /Serie/apps/ncapache/redis-data:/data:Z
# - /etc/localtime:/etc/localtime:ro
# - /etc/timezone:/etc/timezone:ro
2021-04-26 19:15:37 +02:00
2018-08-01 22:55:25 +02:00
app:
2023-11-19 22:27:42 +01:00
image: toffo1nextcloud:apache
# build: ./fpm
2017-08-25 17:18:25 +02:00
restart: always
volumes:
2023-11-19 22:27:42 +01:00
- /apps/ncapache/html:/var/www/html:z
- /apps/ncapache/config:/var/www/html/config:z
- /apps/ncapache/data:/var/www/html/data:z
- /Serie:/mnt/!!Series:z
# - /Serie/apps/nc_test/nextcloud/upload_tmp_dir:/tmp/nextcloudtemp:z
- /etc/localtime:/etc/localtime:z,ro
- /etc/timezone:/etc/timezone:z,ro
2017-08-25 17:18:25 +02:00
environment:
- POSTGRES_HOST=db
2023-11-19 22:27:42 +01:00
- OVERWRITECLIURL=https://toffo.pilsfree.net
- OVERWRITEPROTOCOL=https
- NEXTCLOUD_TRUSTED_DOMAINS=toffo.pilsfree.net toffo.pilsfre.cz 192.168.200.200
- OVERWRITEHOST=toffo.pilsfree.net
- nextcloud_default_phone_region=CZ
2021-04-26 19:15:37 +02:00
- REDIS_HOST=redis
2023-11-19 22:27:42 +01:00
- NEXTCLOUD_TRUSTED_PROXIES=192.168.112.0/24
- VIRTUAL_HOST=toffo.pilsfree.net
- LETSENCRYPT_HOST=toffo.pilsfree.net
- LETSENCRYPT_EMAIL=toffo@pilsfree.net
# - UPLOAD_TMP_DIR=/tmp/nextcloudtemp
# - NEXTCLOUD_INIT_HTACCESS=true
# - NEXTCLOUD_UPDATE=1
devices:
- /dev/dri:/dev/dri
2017-08-25 17:18:25 +02:00
env_file:
- db.env
depends_on:
- db
2021-04-26 19:15:37 +02:00
- redis
2023-11-19 22:27:42 +01:00
# - cron
2017-08-25 17:18:25 +02:00
networks:
- proxy-tier
- default
2017-08-02 11:52:53 +02:00
2021-04-26 19:15:37 +02:00
cron:
2023-11-19 22:27:42 +01:00
image: toffo1nextcloud:apache
2021-04-26 19:15:37 +02:00
restart: always
volumes:
2023-11-19 22:27:42 +01:00
- /apps/ncapache/html:/var/www/html:z
- /apps/ncapache/config:/var/www/html/config:z
- /apps/ncapache/data:/var/www/html/data:z
# - /Serie/apps/nc_test/nextcloud/upload_tmp_dir:/tmp/nextcloudtemp:z
- /etc/localtime:/etc/localtime:z,ro
- /etc/timezone:/etc/timezone:z,ro
2021-04-26 19:15:37 +02:00
entrypoint: /cron.sh
depends_on:
- db
- redis
2017-08-02 11:52:53 +02:00
proxy:
2017-08-25 17:18:25 +02:00
build: ./proxy
restart: always
2017-08-02 11:52:53 +02:00
ports:
- 80:80
- 443:443
labels:
com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true"
2017-08-02 11:52:53 +02:00
volumes:
2023-11-19 22:27:42 +01:00
- /apps/ncapache/certs:/etc/nginx/certs:z,ro
- /apps/ncapache/vhost.dtest:/etc/nginx/vhost.d:z
- /apps/ncapache/html:/usr/share/nginx/html:z
- /var/run/docker.sock:/tmp/docker.sock:z,ro
2023-11-19 22:27:42 +01:00
- /etc/localtime:/etc/localtime:z,ro
- /etc/timezone:/etc/timezone:z,ro
2017-08-02 11:52:53 +02:00
networks:
- proxy-tier
letsencrypt-companion:
image: nginxproxy/acme-companion
2017-08-25 17:18:25 +02:00
restart: always
2017-08-02 11:52:53 +02:00
volumes:
2023-11-19 22:27:42 +01:00
- /apps/ncapache/certs:/etc/nginx/certs:z
- /apps/ncapache/acmetest:/etc/acme.sh:z
- /apps/ncapache/vhost.d:/etc/nginx/vhost.d:z
- /apps/ncapache/html:/usr/share/nginx/html:z
- /var/run/docker.sock:/var/run/docker.sock:z,ro
2023-11-19 22:27:42 +01:00
- /etc/localtime:/etc/localtime:z,ro
- /etc/timezone:/etc/timezone:z,ro
2017-08-02 11:52:53 +02:00
networks:
- proxy-tier
2017-08-25 17:18:25 +02:00
depends_on:
- proxy
2017-08-02 11:52:53 +02:00
2017-08-25 17:18:25 +02:00
networks:
2023-11-19 22:27:42 +01:00
# - net.ipv6.conf.all.disable_ipv6=1
2017-08-25 17:18:25 +02:00
proxy-tier:
2023-11-19 22:27:42 +01:00
name: proxy-tier
driver: bridge
ipam:
config:
- subnet: 192.168.112.0/24
gateway: 192.168.112.1