-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-dinghy.yml
49 lines (43 loc) · 1.15 KB
/
docker-compose-dinghy.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
version: '3'
services:
redis:
image: redis:alpine
environment:
- DOMAIN_NAME=redis.${BASEHOST:-application.docker}
network_mode: bridge
mysql:
image: mysql:5.7
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-toor}
- DOMAIN_NAME=mysql.${BASEHOST:-application.docker}
command: --innodb-doublewrite=0
network_mode: bridge
mailcatcher:
image: mailhog/mailhog
environment:
- VIRTUAL_HOST=mailcatcher.${BASEHOST:-application.docker}
- VIRTUAL_PORT=8025
network_mode: bridge
application:
image: dockerwest/php-laravel:${PHPVERSION:-7.1}
environment:
- C_UID=${C_UID:-1000}
- C_GID=${C_GID:-1000}
- DEVELOPMENT=${DEVELOPMENT:-1}
volumes:
- ${APPLICATION:-../application}:/phpapp
links:
- mysql
- redis
- mailcatcher
network_mode: bridge
nginx:
image: dockerwest/nginx-laravel:${NGINXVERSION:-stable}
environment:
- VIRTUAL_HOST=${BASEHOST:-application.docker},${EXTRAHOSTS}
- VIRTUAL_PORT=80
volumes:
- ${APPLICATION:-../application}:/phpapp
links:
- application
network_mode: bridge