-
Notifications
You must be signed in to change notification settings - Fork 185
/
docker-compose.dev.yml
68 lines (59 loc) · 1.46 KB
/
docker-compose.dev.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
version: "3.1"
services:
php:
environment:
PHP_IDE_CONFIG: serverName=deployer
XDEBUG_CONFIG: remote_host=host.docker.internal
APP_ENV: local
APP_DEBUG: 'true'
volumes:
- "./docker/php/xdebug.ini:/usr/local/etc/php/conf.d/98-xdebug.ini"
links:
- mailhog
queue:
environment:
PHP_IDE_CONFIG: serverName=deployer
XDEBUG_CONFIG: remote_host=host.docker.internal
APP_ENV: local
APP_DEBUG: 'true'
broadcast:
environment:
PHP_IDE_CONFIG: serverName=deployer
XDEBUG_CONFIG: remote_host=host.docker.internal
APP_ENV: local
APP_DEBUG: 'true'
node:
environment:
APP_ENV: local
APP_DEBUG: 'true'
mailhog:
image: mailhog/mailhog:latest
ports:
- "8001:8025"
# Designed to emulate a real server.
#
# Obviously you wouldn't use deployer to deploy to docker containers
# in a production environment as it defeats the point of using containers.
# Saves us from having to run VirtualBox and Vagrant to run a heavy VM
web.dev:
build:
context: docker/dev
dockerfile: web.Dockerfile
volumes:
- cache:/home/deploy/.composer
- webapp:/var/www
cron.dev:
build:
context: docker/dev
dockerfile: web.Dockerfile
volumes:
- cache:/home/deploy/.composer
- cronapp:/var/www
db.dev:
build:
context: docker/dev
dockerfile: db.Dockerfile
volumes:
cache:
cronapp:
webapp: