/
docker-compose.yml
45 lines (44 loc) · 968 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
42
43
44
services:
db:
container_name: ddev-test-db
image: DDEV_DBIMAGE
user: "$DDEV_UID:$DDEV_GID"
restart: always
environment:
- SOME_ENV=env_value_goes_here
ports:
- 3306
labels:
com.ddev.site-name: test
com.ddev.platform: local
com.ddev.app-type: wordpress
web:
container_name: ddev-test-web
image: DDEV_WEBIMAGE
user: "$DDEV_UID:$DDEV_GID"
volumes:
- "../htdocs/:/var/www/html/docroot:cached"
restart: always
depends_on:
- db
ports:
- "80"
- 8025
working_dir: "/var/www/html/docroot"
environment:
- DEPLOY_NAME=local
- VIRTUAL_HOST=${DDEV_HOSTNAME}
- VIRTUAL_PORT=80,8025
labels:
com.ddev.site-name: test
com.ddev.platform: local
com.ddev.app-type: wordpress
healthcheck:
interval: 1s
retries: 25
start_period: 20s
timeout: 120s
networks:
ddev:
name: ddev
external: true