Fixes #3817 -- Update container definitions to handle LE companion changes.

This commit is contained in:
Buster "Silver Eagle" Neece 2021-02-14 12:36:19 -06:00
parent ad761fdd4f
commit 3d50d1286b
No known key found for this signature in database
GPG Key ID: 6D9E12FF03411F4E
1 changed files with 93 additions and 87 deletions

View File

@ -9,60 +9,63 @@
# docker-compose.override.yml
# with any changes you need to make.
#
version: '2.2'
version : '2.2'
services:
nginx_proxy:
image: "azuracast/azuracast_nginx_proxy:${AZURACAST_VERSION:-latest}"
ports:
services :
nginx_proxy :
container_name : nginx_proxy
image : "azuracast/azuracast_nginx_proxy:${AZURACAST_VERSION:-latest}"
ports :
- '${AZURACAST_HTTP_PORT:-80}:80'
- '${AZURACAST_HTTPS_PORT:-443}:443'
volumes:
volumes :
- letsencrypt:/etc/nginx/certs
- nginx_proxy_vhosts:/etc/nginx/vhost.d
- letsencrypt_html:/usr/share/nginx/html
- /var/run/docker.sock:/tmp/docker.sock:ro
environment:
DEFAULT_HOST: ${LETSENCRYPT_HOST:-azuracast.local}
networks:
environment :
DEFAULT_HOST : ${LETSENCRYPT_HOST:-azuracast.local}
networks :
- frontend
depends_on:
depends_on :
- web
restart: always
restart : always
nginx_proxy_letsencrypt:
image: jrcs/letsencrypt-nginx-proxy-companion:latest
volumes_from:
nginx_proxy_letsencrypt :
container_name : nginx_proxy_letsencrypt
image : "azuracast/azuracast_nginx_proxy_letsencrypt:${AZURACAST_VERSION:-latest}"
volumes_from :
- nginx_proxy
volumes:
volumes :
- letsencrypt_acme:/etc/acme.sh
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
DEFAULT_EMAIL: ${LETSENCRYPT_EMAIL}
networks:
environment :
DEFAULT_EMAIL : ${LETSENCRYPT_EMAIL}
networks :
- frontend
restart: always
restart : always
web:
container_name: azuracast_web
image: "azuracast/azuracast_web_v2:${AZURACAST_VERSION:-latest}"
web :
container_name : azuracast_web
image : "azuracast/azuracast_web_v2:${AZURACAST_VERSION:-latest}"
# Want to customize the HTTP/S ports? Follow the instructions here:
# https://www.azuracast.com/help/docker/#use-non-standard-ports
ports:
ports :
- '${AZURACAST_SFTP_PORT:-2022}:2022'
depends_on:
depends_on :
- mariadb
- stations
- redis
env_file: azuracast.env
environment:
LANG: ${LANG:-en_US.UTF-8}
AZURACAST_DC_REVISION: 11
AZURACAST_VERSION: ${AZURACAST_VERSION:-latest}
AZURACAST_SFTP_PORT: ${AZURACAST_SFTP_PORT:-2022}
VIRTUAL_HOST: ${LETSENCRYPT_HOST:-azuracast.local}
LETSENCRYPT_HOST: ${LETSENCRYPT_HOST}
LETSENCRYPT_EMAIL: ${LETSENCRYPT_EMAIL}
volumes:
env_file : azuracast.env
environment :
LANG : ${LANG:-en_US.UTF-8}
AZURACAST_DC_REVISION : 11
AZURACAST_VERSION : ${AZURACAST_VERSION:-latest}
AZURACAST_SFTP_PORT : ${AZURACAST_SFTP_PORT:-2022}
VIRTUAL_HOST : ${LETSENCRYPT_HOST:-azuracast.local}
LETSENCRYPT_HOST : ${LETSENCRYPT_HOST}
LETSENCRYPT_EMAIL : ${LETSENCRYPT_EMAIL}
volumes :
- letsencrypt:/etc/nginx/certs:ro
- www_vendor:/var/azuracast/www/vendor
- tmp_data:/var/azuracast/www_tmp
@ -71,44 +74,46 @@ services:
- geolite_install:/var/azuracast/geoip
- sftpgo_data:/var/azuracast/sftpgo/persist
- backups:/var/azuracast/backups
networks:
networks :
- frontend
- backend
restart: always
ulimits: &default-ulimits
nofile:
soft: 65536
hard: 65536
logging: &default-logging
options:
max-size: "1m"
max-file: "5"
restart : always
ulimits : &default-ulimits
nofile :
soft : 65536
hard : 65536
logging : &default-logging
options :
max-size : "1m"
max-file : "5"
mariadb:
image: "azuracast/azuracast_db:${AZURACAST_VERSION:-latest}"
volumes:
mariadb :
container_name : azuracast_mariadb
image : "azuracast/azuracast_db:${AZURACAST_VERSION:-latest}"
volumes :
- db_data:/var/lib/mysql
env_file: azuracast.env
networks:
env_file : azuracast.env
networks :
- backend
restart: always
logging: *default-logging
restart : always
logging : *default-logging
redis:
image: "azuracast/azuracast_redis:${AZURACAST_VERSION:-latest}"
sysctls:
net.core.somaxconn: 1024
volumes:
redis :
container_name : azuracast_redis
image : "azuracast/azuracast_redis:${AZURACAST_VERSION:-latest}"
sysctls :
net.core.somaxconn : 1024
volumes :
- redis_data:/data
networks:
networks :
- backend
restart: always
logging: *default-logging
restart : always
logging : *default-logging
stations:
container_name: azuracast_stations
image: "azuracast/azuracast_radio:${AZURACAST_VERSION:-latest}"
ports:
stations :
container_name : azuracast_stations
image : "azuracast/azuracast_radio:${AZURACAST_VERSION:-latest}"
ports :
# This default mapping is the outgoing and incoming ports for the first 50 stations.
# You can override this port mapping in your own docker-compose.override.yml file.
# For instructions, see:
@ -260,35 +265,36 @@ services:
- '8490:8490'
- '8495:8495'
- '8496:8496'
volumes:
volumes :
- station_data:/var/azuracast/stations
- shoutcast2_install:/var/azuracast/servers/shoutcast2
- letsencrypt:/etc/nginx/certs
- tmp_data:/var/azuracast/www_tmp
networks:
networks :
- frontend
- backend
init: true
restart: always
ulimits: *default-ulimits
logging: *default-logging
init : true
restart : always
ulimits : *default-ulimits
logging : *default-logging
networks:
frontend:
driver: bridge
backend:
driver: bridge
networks :
frontend :
driver : bridge
backend :
driver : bridge
volumes:
nginx_proxy_vhosts: { }
db_data: { }
letsencrypt: { }
letsencrypt_html: { }
shoutcast2_install: { }
geolite_install: { }
sftpgo_data: { }
station_data: { }
www_vendor: { }
tmp_data: { }
redis_data: { }
backups: { }
volumes :
nginx_proxy_vhosts : { }
db_data : { }
letsencrypt : { }
letsencrypt_html : { }
letsencrypt_acme : { }
shoutcast2_install : { }
geolite_install : { }
sftpgo_data : { }
station_data : { }
www_vendor : { }
tmp_data : { }
redis_data : { }
backups : { }