-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
87 lines (79 loc) · 1.69 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
78
79
80
81
82
83
84
85
86
87
# Development project infrastructure generated over the Docker
version: "3"
services:
wp:
build:
context: ./app/docker/wp-dev
volumes:
- .:/app
env_file:
- ./app/env/wp.env
- ./app/env/app.env
depends_on:
- db
# Image for install and update project PHP packages.
composer:
image: composer
volumes:
- .:/app
# Map local user Composer directory with container for cache packages
- ~/.cache/composer:/tmp/cache
# Database image to run the mysql
db:
image: mariadb:10.3
ports:
- "3306:3306"
volumes:
- ./database:/var/lib/mysql
- ./app/initdb:/docker-entrypoint-initdb.d
env_file:
- ./app/env/mysql.env
# Run the applicatiion over HTTP on localhost:8080
server:
command: wp server --host=0.0.0.0
build:
context: ./app/docker/wp-dev
ports:
- "8080:8080"
volumes:
- .:/app
env_file:
- ./app/env/wp.env
- ./app/env/xdebug.env
depends_on:
- db
- smtp
# Node 8.2 with NPM/Yarn
node:
build:
context: ./app/docker/node
env_file:
- ./app/env/app.env
volumes:
- .:/app
# Watch changes in the project and update the files local server
watch:
command: yarn run dev
build:
context: ./app/docker/node
ports:
- "35729:35729"
volumes:
- .:/app
# Test SMTP server
smtp:
image: schickling/mailcatcher
restart: always
ports:
- "1025:1025"
- "1080:1080"
environment:
MAILCATCHER_PORT: 1025
# Run bash scripts
bash:
build:
context: ./app/docker/bash
volumes:
- .:/app
env_file:
- ./app/env/app.env