Improved docker-compose configs
This commit is contained in:
parent
5beb8e38ca
commit
0c1f326dc5
2 changed files with 7 additions and 11 deletions
|
@ -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
|
|
@ -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
|
Loading…
Reference in a new issue