192 lines
4.5 KiB
YAML
192 lines
4.5 KiB
YAML
version: '3'
|
|
volumes:
|
|
certs:
|
|
html:
|
|
vhostd:
|
|
networks:
|
|
nextcloud:
|
|
mariadb:
|
|
services:
|
|
nginx-proxy:
|
|
container_name: nginx-proxy
|
|
image: jwilder/nginx-proxy:alpine
|
|
restart: unless-stopped
|
|
ports:
|
|
- 80:80
|
|
- 443:443
|
|
environment:
|
|
- HSTS=max-age=31536000; includeSubDomains; preload
|
|
logging:
|
|
driver: journald
|
|
volumes:
|
|
- certs:/etc/nginx/certs
|
|
- html:/usr/share/nginx/html
|
|
- vhostd:/etc/nginx/vhost.d
|
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
|
#- /docker/nextcloud/nginx-proxy.conf.hack:/etc/nginx/vhost.d/nc.faerb.it:ro
|
|
- /docker/nextcloud/nginx-proxy.conf:/etc/nginx/vhost.d/nc.faerb.it:ro
|
|
|
|
letsencrypt:
|
|
container_name: letsencrypt
|
|
image: jrcs/letsencrypt-nginx-proxy-companion
|
|
restart: unless-stopped
|
|
environment:
|
|
- NGINX_PROXY_CONTAINER=nginx-proxy
|
|
logging:
|
|
driver: journald
|
|
volumes:
|
|
- certs:/etc/nginx/certs
|
|
- html:/usr/share/nginx/html
|
|
- vhostd:/etc/nginx/vhost.d
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
|
|
nginx-page:
|
|
container_name: nginx-page
|
|
image: nginx:alpine
|
|
restart: unless-stopped
|
|
environment:
|
|
- VIRTUAL_PROTO=http
|
|
- VIRTUAL_HOST=faerb.it
|
|
- LETSENCRYPT_HOST=faerb.it
|
|
- LETSENCRYPT_EMAIL=faerbit@posteo.net
|
|
logging:
|
|
driver: journald
|
|
volumes:
|
|
- /docker/page:/usr/share/nginx/html:ro
|
|
networks:
|
|
- default
|
|
|
|
nginx-nextcloud:
|
|
container_name: nginx-nextcloud
|
|
image: nginx:alpine
|
|
restart: unless-stopped
|
|
environment:
|
|
- VIRTUAL_PROTO=http
|
|
- VIRTUAL_HOST=nc.faerb.it
|
|
- LETSENCRYPT_HOST=nc.faerb.it
|
|
- LETSENCRYPT_EMAIL=faerbit@posteo.net
|
|
logging:
|
|
driver: journald
|
|
volumes:
|
|
- /docker/nextcloud/nginx.conf:/etc/nginx/nginx.conf:ro
|
|
- /docker/nextcloud/html:/var/www/html:ro
|
|
depends_on:
|
|
- nextcloud
|
|
networks:
|
|
- default
|
|
- nextcloud
|
|
|
|
nextcloud:
|
|
container_name: nextcloud
|
|
image: library/nextcloud:21.0.1-fpm-alpine
|
|
restart: unless-stopped
|
|
env_file:
|
|
- /docker/mariadb/mariadb.env
|
|
environment:
|
|
- REDIS_HOST=redis
|
|
- MYSQL_HOST=mariadb
|
|
logging:
|
|
driver: journald
|
|
volumes:
|
|
- /docker/nextcloud/html:/var/www/html
|
|
depends_on:
|
|
- mariadb
|
|
- redis
|
|
networks:
|
|
- nextcloud
|
|
|
|
nc-cron:
|
|
container_name: nc-cron
|
|
image: library/nextcloud:21.0.1-fpm-alpine
|
|
restart: unless-stopped
|
|
logging:
|
|
driver: journald
|
|
volumes:
|
|
- /docker/nextcloud/html:/var/www/html
|
|
- /docker/nextcloud/cron.sh:/cron.sh
|
|
entrypoint: /cron.sh
|
|
depends_on:
|
|
- mariadb
|
|
- redis
|
|
networks:
|
|
- nextcloud
|
|
|
|
mariadb:
|
|
container_name: mariadb
|
|
image: mariadb:10.5
|
|
restart: unless-stopped
|
|
ports:
|
|
- 127.0.0.1:3306:3306
|
|
env_file:
|
|
- /docker/mariadb/mariadb.env
|
|
logging:
|
|
driver: journald
|
|
volumes:
|
|
- /docker/mariadb/mysql:/var/lib/mysql
|
|
networks:
|
|
- nextcloud
|
|
- mariadb
|
|
|
|
redis:
|
|
container_name: redis
|
|
image: library/redis:6-alpine
|
|
restart: unless-stopped
|
|
logging:
|
|
driver: journald
|
|
networks:
|
|
- nextcloud
|
|
|
|
gitea:
|
|
container_name: gitea
|
|
image: gitea/gitea:1.13
|
|
restart: unless-stopped
|
|
ports:
|
|
- 22:22
|
|
env_file:
|
|
- /docker/mariadb/gitea.env
|
|
- /docker/gitea/gitea.env
|
|
environment:
|
|
- VIRTUAL_HOST=git.faerb.it
|
|
- VIRTUAL_PORT=3000
|
|
- LETSENCRYPT_HOST=git.faerb.it
|
|
- LETSENCRYPT_EMAIL=faerbit@posteo.net
|
|
- SSH_DOMAIN=git.faerb.it
|
|
- ROOT_URL=git.faerb.it
|
|
- DB_TYPE=mysql
|
|
- DB_HOST=mariadb:3306
|
|
- RUN_MODE=prod
|
|
- DISABLE_REGISTRATION=true
|
|
logging:
|
|
driver: journald
|
|
volumes:
|
|
- /docker/gitea/data:/data
|
|
networks:
|
|
- default
|
|
- mariadb
|
|
depends_on:
|
|
- mariadb
|
|
|
|
immoscrape:
|
|
container_name: immoscrape
|
|
image: registry.gitlab.com/faerbit/immoscrape:main
|
|
restart: unless-stopped
|
|
env_file:
|
|
- /docker/mariadb/immoscrape.env
|
|
environment:
|
|
- VIRTUAL_HOST=ims.faerb.it
|
|
- VIRTUAL_PROTO=uwsgi
|
|
- VIRTUAL_PORT=3000
|
|
- LETSENCRYPT_HOST=ims.faerb.it
|
|
- LETSENCRYPT_EMAIL=faerbit@posteo.net
|
|
- IMMOSCRAPE_TELEGRAM_SEND_CONFIG_PATH=/app/config/telegram-send.conf
|
|
logging:
|
|
driver: journald
|
|
volumes:
|
|
- /docker/immoscrape/telegram-send.conf:/app/config/telegram-send.conf
|
|
- /etc/localtime:/etc/localtime:ro
|
|
networks:
|
|
- default
|
|
- mariadb
|
|
depends_on:
|
|
- mariadb
|