[DOCKER] Fix default docker-compose file

This commit is contained in:
Hugo Sales 2021-03-31 09:55:53 +00:00
parent 1028f05cd8
commit ec9a9cec13
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0

View File

@ -28,6 +28,7 @@ services:
nginx -s reload; nginx -s reload;
done & done &
nginx -g "daemon off;"' nginx -g "daemon off;"'
certbot: certbot:
image: certbot/certbot image: certbot/certbot
# Check for certificate renewal every 12h as # Check for certificate renewal every 12h as
@ -35,11 +36,12 @@ services:
entrypoint: /bin/sh -c 'trap exit TERM; entrypoint: /bin/sh -c 'trap exit TERM;
while :; do while :; do
certbot renew > /dev/null; certbot renew > /dev/null;
sleep 12h & wait 75845{!}; sleep 12h & wait $${!};
done' done'
volumes: volumes:
- ./docker/certbot/www:/var/www/certbot - ./docker/certbot/www:/var/www/certbot
- ./docker/certbot/.files:/etc/letsencrypt - ./docker/certbot/.files:/etc/letsencrypt
php: php:
build: docker/php build: docker/php
restart: always restart: always
@ -57,20 +59,23 @@ services:
- ./docker/social/social.env - ./docker/social/social.env
- ./docker/db/db.env - ./docker/db/db.env
command: /entrypoint.sh command: /entrypoint.sh
db: db:
image: mariadb image: postgres:alpine
restart: always restart: always
tty: false tty: false
ports: ports:
- 3306:3306 - 3306:3306
env_file: env_file:
- ./docker/db/db.env - ./docker/db/db.env
redis: redis:
image: redis:alpine image: redis:alpine
restart: always restart: always
tty: false tty: false
ports: ports:
- 6379:6379 - 6379:6379
mail: mail:
build: docker/mail build: docker/mail
env_file: env_file:
@ -87,3 +92,5 @@ services:
# Certbot # Certbot
- ./docker/certbot/www:/var/www/certbot - ./docker/certbot/www:/var/www/certbot
- ./docker/certbot/.files:/etc/letsencrypt - ./docker/certbot/.files:/etc/letsencrypt
volumes:
database: