photoprism/docker-compose.yml
2018-06-16 14:19:18 +02:00

26 lines
No EOL
560 B
YAML

version: '3.3'
services:
photoprism:
build: .
ports:
- 80:80
- 8080:8080
volumes:
- .:/go/src/photoprism
database:
image: mysql:latest
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=1024
ports:
- 13306:3306
volumes:
- database-data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: photoprism
MYSQL_USER: photoprism
MYSQL_PASSWORD: photoprism
MYSQL_DATABASE: photoprism
volumes:
database-data:
driver: local