docker compose unless stopped
This commit is contained in:
parent
6c77f5b05a
commit
f432bc12e1
1 changed files with 4 additions and 4 deletions
|
@ -4,10 +4,10 @@ services:
|
|||
webserver:
|
||||
build: ./
|
||||
container_name: blog_apache
|
||||
restart: on-failure
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- ${HOST_MACHINE_UNSECURE_HOST_PORT-3001}:80
|
||||
- ${HOST_MACHINE_SECURE_HOST_PORT-3002}:443
|
||||
- ${HTTP_PORT-80}:80
|
||||
- ${HTTPS_PORT-443}:443
|
||||
volumes:
|
||||
- ${IMAGES-./i}:/var/www/html/i
|
||||
- ${THUMBS-./t}:/var/www/html/t
|
||||
|
@ -18,7 +18,7 @@ services:
|
|||
environment:
|
||||
MYSQL_DATABASE: blog
|
||||
MYSQL_ROOT_PASSWORD: root
|
||||
restart: on-failure
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- mariadb:/var/lib/mysql
|
||||
- ./app/db:/docker-entrypoint-initdb.d:ro
|
||||
|
|
Loading…
Add table
Reference in a new issue