-
Notifications
You must be signed in to change notification settings - Fork 3
/
compose.yaml
47 lines (42 loc) · 1.33 KB
/
compose.yaml
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
services:
app:
container_name: ${COMPOSE_PROJECT_NAME}-app
hostname: ${COMPOSE_PROJECT_NAME}
image: druidfi/drupal-web:v8.3.10
volumes:
- .:/app:delegated
- ssh:/tmp/druid_ssh-agent:ro
environment:
APP_ENV: ${APP_ENV:-dev}
DRUSH_OPTIONS_URI: https://${DRUPAL_HOSTNAME}
SIMPLETEST_BASE_URL: http://app:8080
SIMPLETEST_DB: mysql://drupal:drupal@db:3306/drupal
XDEBUG_ENABLE: ${XDEBUG_ENABLE:-false}
BROWSERTEST_OUTPUT_BASE_URL: https://${DRUPAL_HOSTNAME}
labels:
- traefik.enable=true
- traefik.http.routers.${COMPOSE_PROJECT_NAME}-app.entrypoints=https
- traefik.http.routers.${COMPOSE_PROJECT_NAME}-app.rule=Host(`${DRUPAL_HOSTNAME}`)
- traefik.http.routers.${COMPOSE_PROJECT_NAME}-app.tls=true
- traefik.http.services.${COMPOSE_PROJECT_NAME}-app.loadbalancer.server.port=8080
- traefik.docker.network=stonehenge-network
extra_hosts:
- host.docker.internal:host-gateway
networks:
- default
- stonehenge-network
db:
container_name: ${COMPOSE_PROJECT_NAME}-db
image: druidfi/mysql:8.0-drupal-lts
ports:
- 3306
redis:
container_name: ${COMPOSE_PROJECT_NAME}-redis
image: redis:7-alpine
networks:
stonehenge-network:
external: true
volumes:
ssh:
name: stonehenge-ssh
external: true