Updated docs for docker restart policy

This commit is contained in:
Jamie Curnow 2021-06-08 08:48:26 +10:00
parent e59db84721
commit 3e1518fef6
2 changed files with 6 additions and 6 deletions

View File

@ -34,7 +34,7 @@ services:
volumes: volumes:
- './data:/data' - './data:/data'
- '/var/run/docker.sock:/var/run/docker.sock' - '/var/run/docker.sock:/var/run/docker.sock'
restart: always restart: unless-stopped
networks: networks:
default: default:
@ -68,7 +68,7 @@ secrets:
services: services:
app: app:
image: 'jc21/nginx-proxy-manager:latest' image: 'jc21/nginx-proxy-manager:latest'
restart: always restart: unless-stopped
ports: ports:
# Public HTTP Port: # Public HTTP Port:
- '80:80' - '80:80'
@ -98,7 +98,7 @@ services:
- db - db
db: db:
image: jc21/mariadb-aria image: jc21/mariadb-aria
restart: always restart: unless-stopped
environment: environment:
# MYSQL_ROOT_PASSWORD: "npm" # use secret instead # MYSQL_ROOT_PASSWORD: "npm" # use secret instead
MYSQL_ROOT_PASSWORD__FILE: /run/secrets/DB_ROOT_PWD MYSQL_ROOT_PASSWORD__FILE: /run/secrets/DB_ROOT_PWD

View File

@ -25,7 +25,7 @@ version: "3"
services: services:
app: app:
image: 'jc21/nginx-proxy-manager:latest' image: 'jc21/nginx-proxy-manager:latest'
restart: always restart: unless-stopped
ports: ports:
# Public HTTP Port: # Public HTTP Port:
- '80:80' - '80:80'
@ -54,7 +54,7 @@ services:
- db - db
db: db:
image: 'jc21/mariadb-aria:latest' image: 'jc21/mariadb-aria:latest'
restart: always restart: unless-stopped
environment: environment:
MYSQL_ROOT_PASSWORD: 'npm' MYSQL_ROOT_PASSWORD: 'npm'
MYSQL_DATABASE: 'npm' MYSQL_DATABASE: 'npm'
@ -96,7 +96,7 @@ version: "3"
services: services:
app: app:
image: 'jc21/nginx-proxy-manager:latest' image: 'jc21/nginx-proxy-manager:latest'
restart: always restart: unless-stopped
ports: ports:
# Public HTTP Port: # Public HTTP Port:
- '80:80' - '80:80'