-
Notifications
You must be signed in to change notification settings - Fork 1
/
amd64.yaml
30 lines (30 loc) · 1.07 KB
/
amd64.yaml
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
version: '2'
services:
webserver:
build: ./docker/php
links:
- database
ports:
- "8081:80"
- "8082:443"
volumes:
- ./config/apache2/sites-enabled:/etc/apache2/sites-enabled
- ./config/apache2/ports.conf:/etc/apache2/ports.conf
- ./src/:/var/www/html
- ./config/php/:/usr/local/etc/php/
- ./config/ComicLib/:/var/www/ComicLibConfig/
- ./config/ImageMagick/policy.xml:/etc/ImageMagick-6/policy.xml # Increase RAM for Image Magick to 2GB.
command: bash -c "ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone; source /etc/apache2/envvars; php /var/www/html/scripts/startupTasks.php; apache2 -D FOREGROUND"
database:
image: mysql:latest
# Open Port for development.
ports:
- "3306:3306"
volumes:
- ./mysql-data/:/var/lib/mysql/
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
command: bash -c "docker-entrypoint.sh mysqld --log_bin_trust_function_creators=1"