-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
78 lines (74 loc) · 2.24 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
version: '3.8'
services:
mariadb-phpmyadmin:
image: mariadb:latest
stop_grace_period: 45s
volumes:
- mariadb-vol-1:/var/lib/mysql/
- mariadb-socket-vol-1:/var/run/mysqld/
- ./data/conf/mariadb/:/etc/mariadb/conf.d/:ro,Z
environment:
- TZ=${TZ:-UTC}
- MARIADB_ROOT_PASSWORD=${ROOT_PASSWORD}
restart: unless-stopped
ports:
- "${SQL_PORT:-127.0.0.1:13306}:3306"
networks:
phpmyadmin-network:
aliases:
- mariadb
php-fpm-phpmyadmin:
image: sagesphinx63920/phpmydocker-fpm:latest
command: "php-fpm -d date.timezone=${TZ}"
volumes:
- ./data/web:/web:z
- mariadb-socket-vol-1:/var/run/mysqld/
- ./data/conf/fpm/phpmyadmin.ini:/usr/local/etc/php/conf.d/phpmyadmin.ini:Z
- ./data/conf/nginx/:/etc/nginx/conf.d/:z
- ./data/conf/fpm/pools.conf:/usr/local/etc/php-fpm.d/z-pools.conf:Z
environment:
- TZ=${TZ}
- IPV4_NETWORK=${IPV4_NETWORK:-172.22.1}
- IPV6_NETWORK=${IPV6_NETWORK:-fd4d:6169:6c63:6f77::/64}
restart: on-failure:5
networks:
phpmyadmin-network:
aliases:
- phpfpm
nginx-phpmyadmin:
depends_on:
- php-fpm-phpmyadmin
- mariadb-phpmyadmin
image: nginx:latest
command: "nginx -g 'daemon off;'"
environment:
- HTTPS_PORT=${HTTPS_PORT:-443}
- HTTP_PORT=${HTTP_PORT:-80}
- IPV4_NETWORK=${IPV4_NETWORK:-172.22.1}
- TZ=${TZ:-UTC}
volumes:
- ./data/web:/web:ro,z
- ./data/conf/nginx/phpmyadmin.conf:/etc/nginx/conf.d/default.conf:z
- ./data/ssl:/etc/phpmydocker/:ro,z
ports:
- "${WEB_BIND:-}:${HTTPS_PORT:-443}:443"
- "${WEB_BIND:-}:${HTTP_PORT:-80}:80"
restart: on-failure:5
networks:
phpmyadmin-network:
aliases:
- nginx
networks:
phpmyadmin-network:
driver: bridge
driver_opts:
com.docker.network.bridge.name: br-phpmyadmin
enable_ipv6: true
ipam:
driver: default
config:
- subnet: ${IPV4_NETWORK:-172.22.1}.0/24
- subnet: ${IPV6_NETWORK:-fd4d:6169:6c63:6f77::/64}
volumes:
mariadb-vol-1:
mariadb-socket-vol-1: