forked from adaudenthun/l3-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·77 lines (68 loc) · 1.7 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
version: '3.7'
services:
traefik:
image: traefik:latest
labels:
- traefik.enable=true
- traefik.http.routers.local-traefik.rule=Host(`traefik.project.com`)
- traefik.http.services.local-traefik.loadbalancer.server.port=8080
command: --api.insecure=true --providers.docker
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 80:80
mysql:
image: mysql:5.7
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_USER: www-data
MYSQL_PASSWORD: www-password
MYSQL_DATABASE: eurovent
labels:
- traefik.enable=false
volumes:
- mysql_data:/var/lib/mysql:rw
phpmyadmin:
image: phpmyadmin/phpmyadmin
environment:
PMA_HOST: mysql
PMA_PORT: 3306
PMA_USER: www-data
PMA_PASSWORD: www-password
labels:
- traefik.enable=true
- traefik.http.routers.phpmyadmin-eurovent.rule=Host(`phpmyadmin.project.com`)
links:
- mysql
depends_on:
- mysql
mailhog:
image: mailhog/mailhog
environment:
MH_STORAGE: maildir
labels:
- traefik.enable=true
- traefik.http.routers.local-mailhog.rule=Host(`mailhog.project.com`)
- traefik.http.services.local-mailhog.loadbalancer.server.port=8025
volumes:
- mailhog_data:/maildir:rw
apache:
build: .
env_file:
- .env
labels:
- traefik.enable=true
- traefik.http.routers.local-eurovent.rule=Host(`local.project.com`)
depends_on:
- mysql
- mailhog
links:
- mysql
- mailhog
volumes:
- ./:/var/www/html:rw
volumes:
mysql_data:
redis_data:
mailhog_data: