-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
60 lines (60 loc) · 1.17 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
56
57
58
59
60
version: "3.2"
services:
php:
build: './docker/php/'
depends_on:
- mysql
networks:
- backend
volumes:
- .:/var/www/html/
working_dir:
/var/www/html/
environment:
DBHOST: 'mysql:${DBPORT:-3306}'
DBNAME: ${DBNAME}
DBPASS: ${DBPASS}
DBUSER: ${DBUSER}
DBPORT: ${DBPORT:-3306}
API_SERVER: "http://apache"
composer:
restart: 'no'
image: "composer"
command: install
volumes:
- .:/app
apache:
build: './docker/apache/'
depends_on:
- php
- mysql
networks:
- frontend
- backend
ports:
- "8081:80"
volumes:
- .:/var/www/html/
mysql:
image: mysql:5.6.40
container_name: ffxiv_mysql
networks:
- backend
environment:
MYSQL_ROOT_PASSWORD: ${DBROOTPW}
MYSQL_ALLOW_EMPTY_PASSWORD: 1
MYSQL_DATABASE: ${DBNAME}
MYSQL_PASSWORD: ${DBPASS}
MYSQL_USER: ${DBUSER}
MYSQL_TCP_PORT: ${DBPORT:-3306}
ports:
- "${DBPORT:-3306}:${DBPORT:-3306}"
expose:
- ${DBPORT:-3306}
volumes:
- mysql:/var/lib/mysql
networks:
frontend:
backend:
volumes:
mysql: