-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml-template
57 lines (55 loc) · 1.31 KB
/
docker-compose.yml-template
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
49
50
51
52
53
54
55
56
version: '2'
services:
mysql:
image: mariadb
restart: unless-stopped
environment:
- MYSQL_ROOT_PASSWORD=password
- TZ=Europe/Berlin
- MYSQL_DATABASE=prolife
expose:
- 3306
volumes:
- ./persistent/mysql:/var/lib/mysql
php5:
##################################################
# BUILD section
##################################################
build:
context: ./build
dockerfile: Dockerfile
args:
BUILD_TZ: Europe/Berlin
BUILD_PRINTING: "yes"
BUILD_LATEX: "yes"
BUILD_MYSQLCLI: "yes"
##################################################
# RUN section
##################################################
image: unimock/nginx-php5:0.2.0
container_name: prolife
restart: unless-stopped
hostname: prolife
environment:
# disable services : cron
- DISABLED_SERVICES=
volumes:
- ./persistent/html:/usr/share/nginx/html
- ./service:/service
ports:
- "80:80"
depends_on:
- mysql
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: phpmyadmin
restart: unless-stopped
environment:
- PMA_ARBITRARY=0
- PMA_HOST=mysql
- PMA_USER=root
- PMA_PASSWORD=password
ports:
- "81:80"
depends_on:
- mysql