Added restart: always to production config
This commit is contained in:
parent
127e7a4176
commit
39b1f18f94
1 changed files with 2 additions and 0 deletions
|
@ -6,6 +6,7 @@ version: '3.3'
|
||||||
services:
|
services:
|
||||||
photoprism: # change if needed
|
photoprism: # change if needed
|
||||||
image: photoprism/photoprism # use pre-built image from docker hub: https://hub.docker.com/r/photoprism/photoprism/
|
image: photoprism/photoprism # use pre-built image from docker hub: https://hub.docker.com/r/photoprism/photoprism/
|
||||||
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- 80:80 # left side is your local port (change if port 80 is already used)
|
- 80:80 # left side is your local port (change if port 80 is already used)
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -18,6 +19,7 @@ services:
|
||||||
|
|
||||||
database: # keep this
|
database: # keep this
|
||||||
image: mysql:latest
|
image: mysql:latest
|
||||||
|
restart: always
|
||||||
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=1024
|
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=1024
|
||||||
volumes:
|
volumes:
|
||||||
- photoprism-database:/var/lib/mysql
|
- photoprism-database:/var/lib/mysql
|
||||||
|
|
Loading…
Reference in a new issue