Improved docker-compose configs

This commit is contained in:
Michael Mayer 2018-09-17 18:08:46 +02:00
parent 5beb8e38ca
commit 0c1f326dc5
2 changed files with 7 additions and 11 deletions

View file

@ -6,13 +6,13 @@ services:
ports:
- 80:80
volumes:
- photo-data:/var/photoprism/photos
- photoprism-photos:/var/photoprism/photos
database:
image: mysql:latest
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=1024
volumes:
- database-data:/var/lib/mysql
- photoprism-database:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: photoprism
MYSQL_USER: photoprism
@ -20,7 +20,7 @@ services:
MYSQL_DATABASE: photoprism
volumes:
photo-data:
photoprism-photos:
driver: local
database-data:
photoprism-database:
driver: local

View file

@ -9,7 +9,7 @@ services:
- 80:80
volumes:
- .:/go/src/github.com/photoprism/photoprism
- ./configs/photoprism.dev.yml:/etc/photoprism/photoprism.yml
- ./configs/photoprism.dev.yml:/etc/photoprism/photoprism.yml:ro
database:
image: mysql:latest
@ -17,13 +17,9 @@ services:
ports:
- 13306:3306
volumes:
- database-data:/var/lib/mysql
- /var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: photoprism
MYSQL_USER: photoprism
MYSQL_PASSWORD: photoprism
MYSQL_DATABASE: photoprism
volumes:
database-data:
driver: local
MYSQL_DATABASE: photoprism