-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (35 loc) · 959 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (35 loc) · 959 Bytes
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
version: '3'
services:
pw:
environment:
- VIRTUAL_HOST=myapp.localtest.me # *.localtest.me subdomains will always point to 127.0.0.1 on every computer in the world...easy way to use multiple hostnames on a windows dev machine.
build:
args:
- docker_hostip=10.7.0.164 #REPLACE this IP with the LAN IP of your host machine. (This is so Xdebug can communicate with your IDE on host machine).
context: .
dockerfile: app-dockerfile
image: joel-alpine-php-processwire
depends_on:
- db
networks:
- default
- proxy
volumes:
- ./src:/DATA/htdocs
- ./logs:/DATA/logs
db:
image: mariadb
networks:
- default
volumes:
- mysql:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=rootpassword
- MYSQL_DATABASE=processwire
- MYSQL_USER=processwire
- MYSQL_PASSWORD=password
volumes:
mysql:
networks:
proxy:
external: true