added networks and container names
This commit is contained in:
@@ -1,13 +1,17 @@
|
||||
services:
|
||||
photoprism:
|
||||
container_name: photoprism
|
||||
image: photoprism/photoprism:latest
|
||||
# restart: unless-stopped
|
||||
restart: unless-stopped
|
||||
stop_grace_period: 10s
|
||||
depends_on:
|
||||
- mariadb
|
||||
security_opt:
|
||||
- seccomp:unconfined
|
||||
- apparmor:unconfined
|
||||
networks:
|
||||
- external
|
||||
- photoprism
|
||||
ports:
|
||||
- "2342:2342"
|
||||
environment:
|
||||
@@ -55,6 +59,7 @@ services:
|
||||
- "${DOCKER_CONFIGS}/storage:/photoprism/storage" # *Writable* storage folder for cache, database, and sidecar files (DO NOT REMOVE)
|
||||
|
||||
mariadb:
|
||||
container_name: mariadb
|
||||
image: mariadb:11
|
||||
restart: unless-stopped
|
||||
stop_grace_period: 5s
|
||||
@@ -62,6 +67,8 @@ services:
|
||||
- seccomp:unconfined
|
||||
- apparmor:unconfined
|
||||
command: --innodb-buffer-pool-size=512M --transaction-isolation=READ-COMMITTED --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=512 --innodb-rollback-on-timeout=OFF --innodb-lock-wait-timeout=120
|
||||
networks:
|
||||
- photoprism
|
||||
volumes:
|
||||
- "${DOCKER_CONFIGS}/database:/var/lib/mysql"
|
||||
environment:
|
||||
@@ -71,3 +78,10 @@ services:
|
||||
MARIADB_USER: "photoprism"
|
||||
MARIADB_PASSWORD: "photoprism"
|
||||
MARIADB_ROOT_PASSWORD: "eengeYoowoh9loh5zahngoh1aoye4b"
|
||||
|
||||
networks:
|
||||
photoprism:
|
||||
name: photoprism
|
||||
external:
|
||||
external: true
|
||||
|
||||
Reference in New Issue
Block a user