-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
68 lines (62 loc) · 1.36 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
# docker-compose.yml (base)
version: "3.7"
services:
# Bedrock WordPress on Apache
srv:
build: .
image: nonfiction/${APP_NAME}:latest
env_file: .env
environment:
- APP_HOST
volumes:
- type: volume
source: uploads
target: /srv/web/app/uploads
expose:
- 443
# WP-CLI
wp:
image: nonfiction/${APP_NAME}:latest
env_file: .env
environment:
- APP_HOST
entrypoint: /usr/local/bin/wp
working_dir: /srv
command: 'core version'
volumes:
- type: volume
source: uploads
target: /srv/web/app/uploads
# Webpack Dev Server
dev:
image: nonfiction/bedrock:dev
command: webpack-dev-server --hide-modules --hot
volumes:
- type: bind
source: ./site
target: /srv/web/app/site
- type: volume
source: node_modules
target: /srv/node_modules
expose:
- 443
# Manage files and databases
env:
image: nonfiction/bedrock:env
env_file: .env
volumes:
- type: volume
source: uploads
target: /uploads
- type: bind
source: /tmp/${APP_NAME}/uploads
target: /host
# traefik reverse-proxy defined by docker-host
networks:
traefik:
name: traefik
external: true
# speed up build times by storing packages, persist uploads
volumes:
uploads:
node_modules: