-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml.dist
66 lines (59 loc) · 1.36 KB
/
docker-compose.yml.dist
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
version: '3.5'
services:
php:
image: ${PHP_REGISTRY:-kilik/php}:${PHP_TAG:-7.4-buster-dev}
env_file:
- .env
- .php.env
volumes:
- .:/var/www/html:${FS_MOUNT-consistent}
- ${HOME}:/var/www/home
hostname: kilik-table-demo_php
networks:
- php
- mysql
environment:
SERVICE: php
nginx:
image: ${NGINX_REGISTRY:-kilik/nginx}:${NGINX_TAG:-symfony-4.x-stretch}
volumes:
- ./public:/var/www/html/public
hostname: kilik-table-demo_nginx
networks:
- php
- webproxy
environment:
VIRTUAL_HOST: ${VHOST}
LETSENCRYPT_HOST: ${VHOST}
LETSENCRYPT_EMAIL: ${SSL_EMAIL:-}
mysql:
image: ${MYSQL_REGISTRY:-mysql}:${MYSQL_TAG:-5.7}
environment:
MYSQL_ROOT_PASSWORD: test
MYSQL_DATABASE: project
MYSQL_USER: project
MYSQL_PASSWORD: test
hostname: kilik-table-demo_mysql
networks:
- mysql
volumes:
- mysql-data:/var/lib/mysql
phpmyadmin:
image: ${PMA_REGISTRY:-phpmyadmin/phpmyadmin}:${PMA_TAG:-5.1}
hostname: project_phpmyadmin
networks:
- webproxy
- mysql
environment:
VIRTUAL_HOST: pma.${VHOST:-kilik-table-demo.localhost}
PMA_HOST: mysql
depends_on:
- mysql
networks:
php:
mysql:
webproxy:
external:
name: ${PROXY_NETWORK:-webproxy}
volumes:
mysql-data: