mirror of
https://github.com/DirectoryLister/DirectoryLister.git
synced 2025-08-22 21:54:15 +02:00
Restart Docker containers on failure only
This commit is contained in:
@@ -8,6 +8,7 @@ services:
|
||||
VIRTUAL_HOST: directory-lister.local
|
||||
volumes:
|
||||
- ./:/var/www/html
|
||||
restart: on-failure
|
||||
extra_hosts:
|
||||
- host.docker.internal:${DOCKER_HOST_IP}
|
||||
|
||||
@@ -16,12 +17,14 @@ services:
|
||||
ports:
|
||||
- ${MEMCACHED_PORT:-11211}:11211
|
||||
image: memcached:1.6
|
||||
restart: on-failure
|
||||
|
||||
redis:
|
||||
container_name: directory-lister-redis
|
||||
ports:
|
||||
- ${REDIS_PORT:-6379}:6379
|
||||
image: redis:6.0
|
||||
restart: on-failure
|
||||
|
||||
networks:
|
||||
default:
|
||||
|
Reference in New Issue
Block a user