forked from HackerExperience/legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (54 loc) · 1.43 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
49
50
51
52
53
54
55
version: '3'
services:
web:
image: nginx:alpine
restart: always
ports:
- "80:80"
volumes:
- ./build/app/src:/var/www
- ./conf/nginx.conf:/etc/nginx/conf.d/default.conf
- ./log:/var/log/nginx
environment:
- TZ=America/Sao_Paulo
logging:
options:
max-size: "512m"
links:
- php
php:
image: php-mysql
build: ./build/php
restart: always
logging:
options:
max-size: "512m"
volumes:
- ./build/app/src:/var/www
- ./data/html-data:/var/www/html
- ./data/forum-cache:/var/www/forum/cache
- ./data/status:/var/www/status
- ./log:/var/log/game
- ./conf/php.conf:/usr/local/etc/php-fpm.d/www.conf
# Enable CRON jobs
- ./build/app/src/crontab:/etc/cron.d/game
environment:
- TZ=America/Sao_Paulo
links:
- "db:ipmysql"
db:
image: mysql:5.7
command: --default-authentication-plugin=mysql_native_password --explicit_defaults_for_timestamp --sql-mode=""
restart: always
environment:
MYSQL_ROOT_PASSWORD: admin
volumes:
- ./data/mysql:/var/lib/mysql
# Start database script
- ./build/app/db/:/docker-entrypoint-initdb.d/
#networks:
# default:
# driver: bridge
# ipam:
# config:
# - subnet: 172.24.24.0/24