-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
63 lines (59 loc) · 1.36 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
version: '2'
services:
php:
build: ./docker/build/php
volumes:
- ./api:/var/www/html
environment:
- "DB_HOST=mysql"
networks:
- default
nginx:
build: ./docker/build/nginx
volumes:
- ./api:/var/www/html
depends_on:
- php
ports:
- 8080:80
- 8000:8000
networks:
- default
- traefik_proxy
labels:
- 'traefik.backend=api_hssports_nginx_1'
- 'traefik.port=80'
- 'traefik.frontend.rule=Host:hss.dev'
- "traefik.docker.network=traefik_proxy"
mysql:
image: mysql:5.7.21
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: root
explicit_defaults_for_timestamp: 1
# ports:
# - "8006:3306"
volumes:
- ./runtime/mysql/data:/var/lib/mysql
- ./runtime/mysql/conf:/etc/mysql/conf.d
- ./runtime/mysql/databases:/databases
pma:
image: phpmyadmin/phpmyadmin
restart: unless-stopped
environment:
PMA_HOST: mysql
PMA_USER: root
PMA_PASSWORD: root
PHP_UPLOAD_MAX_FILESIZE: 1G
PHP_MAX_INPUT_VARS: 1G
networks:
- default
- traefik_proxy
labels:
- 'traefik.backend=api_hssports_pma_1'
- 'traefik.port=80'
- 'traefik.frontend.rule=Host:pma.hss.dev'
- "traefik.docker.network=traefik_proxy"
networks:
traefik_proxy:
external: true