forked from Piwigo/Piwigo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (47 loc) · 1.03 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
version: "3"
volumes:
Galleries:
Local:
Plugins:
Themes:
Cache:
Upload:
Mysql:
networks:
web:
external: true
services:
piwigo:
build: .
container_name: piwigo
volumes:
- ${WO_DIR_GALLERIES}:/piwigo/piwigo/galleries
- ${WO_DIR_LOCAL}:/piwigo/piwigo/local
- ${WO_DIR_PLUGINS}:/piwigo/piwigo/plugins
- ${WO_DIR_THEMES}:/piwigo/piwigo/themes
- ${WO_DIR_CACHE}:/piwigo/piwigo/_data/i
- ${WO_DIR_UPLOAD}:/piwigo/piwigo/upload
- /var/log
- /var/log/piwigo:/var/log/apache2
expose:
- "9000"
links:
- mysql
labels:
- traefik.backend=piwigo
- traefik.frontend.rule=Host:imagenes.${WO_HOST}
- traefik.docker.network=web
- traefik.port=9000
- traefik.enable=true
networks:
- web
- default
mysql:
image: mysql:5
volumes:
- ${WO_DIR_MYSQL}:/var/lib/mysql
environment:
MYSQL_USER: "piwigo"
MYSQL_PASSWORD: "piwigo"
MYSQL_DATABASE: "piwigo"
MYSQL_RANDOM_ROOT_PASSWORD: "true"