Add auto restart
This commit is contained in:
parent
81efc35085
commit
83ffa00f82
|
@ -27,6 +27,7 @@ services:
|
|||
- ./volumes/wiki-en-cache:/www/wiki/en/cache/
|
||||
- ./nginx.conf.template:/opt/nginx.conf.template
|
||||
command: /bin/bash -c "envsubst '$$WIKI_HOSTNAME,$$TOOLS_HOSTNAME' < /opt/nginx.conf.template > /etc/nginx/conf.d/default.conf && exec nginx -g 'daemon off;'"
|
||||
restart: always
|
||||
|
||||
phpfpm-main:
|
||||
build:
|
||||
|
@ -48,6 +49,7 @@ services:
|
|||
- ./src/PRGM2FUNC:/www/PRGM2FUNC/
|
||||
- ./src/pcgenerator:/www/pcgenerator/
|
||||
- ./src/home:/www/home/
|
||||
restart: always
|
||||
|
||||
phpfpm-wiki:
|
||||
build:
|
||||
|
@ -76,6 +78,7 @@ services:
|
|||
- ./volumes/wiki-en-images:/www/wiki/en/images/
|
||||
- ./volumes/wiki-fr-cache:/www/wiki/fr/cache/
|
||||
- ./volumes/wiki-en-cache:/www/wiki/en/cache/
|
||||
restart: always
|
||||
|
||||
mariadb-wiki:
|
||||
image: mariadb
|
||||
|
@ -88,6 +91,7 @@ services:
|
|||
MYSQL_DATABASE: wiki
|
||||
volumes:
|
||||
- ./volumes/mariadb-wiki:/var/lib/mysql
|
||||
restart: always
|
||||
|
||||
# Uncomment the following block to have a ready to use phpmyadmin
|
||||
# Don't keep it up in production
|
||||
|
@ -102,4 +106,4 @@ services:
|
|||
|
||||
networks:
|
||||
php-fpm:
|
||||
mariadb-wiki:
|
||||
mariadb-wiki:
|
||||
|
|
Loading…
Reference in New Issue