-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
42 lines (36 loc) · 1021 Bytes
/
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
version: '3'
services:
redis:
image: redis:alpine
environment:
- DOMAIN_NAME=redis.${BASEHOST:-application.docker}
mysql:
image: mysql:5.7
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-toor}
- DOMAIN_NAME=mysql.${BASEHOST:-application.docker}
command: --innodb-doublewrite=0
mailcatcher:
image: mailhog/mailhog
environment:
- DOMAIN_NAME=mailcatcher.${BASEHOST:-application.docker}
application:
image: dockerwest/php-sylius:${PHPVERSION:-7.3}
environment:
- C_UID=${C_UID:-1000}
- C_GID=${C_GID:-1000}
- DEVELOPMENT=${DEVELOPMENT:-1}
volumes:
- ${APPLICATION:-../application}:/phpapp
links:
- mysql
- redis
- mailcatcher
nginx:
image: dockerwest/nginx-symfony${SYMFONYVERSION:-4}:${NGINXVERSION:-stable}
environment:
- VIRTUAL_HOST=${BASEHOST:-application.docker},${EXTRAHOSTS}
volumes:
- ${APPLICATION:-../application}:/phpapp
links:
- application