-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·61 lines (60 loc) · 1.56 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
61
version: '3.1'
services:
mariadb:
image: mariadb
container_name: phpay-mariadb
restart: always
ports:
- 3306:3306
environment:
- MYSQL_DATABASE=phpay
- MYSQL_USER=phpay
- MYSQL_PASSWORD=phpay
- MYSQL_ROOT_PASSWORD=phpay
volumes:
- ./server/storage/mariadb:/var/lib/mysql
- ./server/config/mysql.cnf:/etc/mysql/conf.d/mysql.cnf
flyway-mariadb:
container_name: phpay-flyway-mariadb
image: boxfuse/flyway:5.2.4
command: -url=jdbc:mysql://mariadb/phpay -schemas=phpay -user=phpay -password=phpay -connectRetries=10 migrate
volumes:
- ./server/migrations:/flyway/sql
depends_on:
- mariadb
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: phpay-phpmyadmin
restart: always
environment:
PMA_HOST: mariadb
PMA_PORT: 3306
ports:
- 8888:80
volumes:
- /sessions
- ./server/config/phpmyadmin/php.ini:/usr/local/etc/php/conf.d/php-phpmyadmin.ini
links:
- mariadb
depends_on:
- mariadb
webserver:
build:
context: .
dockerfile: ./server/dockerfile/php/Dockerfile
container_name: phpay-webserver
restart: always
environment:
XDEBUG_CONFIG: "remote_host=127.0.0.1 remote_enable=1"
ports:
- 8000:80
- 443:443
volumes:
- .:/var/www/html
- ./server/config/php/php.ini:/usr/local/etc/php/php.ini
- ./server/config/vhosts:/etc/apache2/sites-enabled
- ./server/logs/apache2:/var/log/apache2
links:
- mariadb
depends_on:
- flyway-mariadb