-
Notifications
You must be signed in to change notification settings - Fork 4
/
compose.yaml
56 lines (52 loc) · 1.63 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
48
49
50
51
52
53
54
55
56
services:
app:
container_name: ${COMPOSE_PROJECT_NAME}-app
hostname: ${COMPOSE_PROJECT_NAME}
image: druidfi/drupal-web:v8.3.13
depends_on:
db:
condition: service_healthy
valkey:
condition: service_healthy
volumes:
- .:/app:delegated
environment:
APP_ENV: ${APP_ENV:-dev}
DRUSH_OPTIONS_URI: https://${DRUPAL_HOSTNAME}
REDIS_HOST: ${COMPOSE_PROJECT_NAME}-valkey
SIMPLETEST_BASE_URL: http://app:8080
SIMPLETEST_DB: mysql://drupal:drupal@db:3306/drupal
XDEBUG_ENABLE: ${XDEBUG_ENABLE:-false}
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
healthcheck:
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost", "-uroot", "-pdrupal" ]
interval: 5s
timeout: 5s
retries: 3
valkey:
container_name: ${COMPOSE_PROJECT_NAME}-valkey
image: valkey/valkey:8-alpine
healthcheck:
test: '[ "$$(valkey-cli -h 127.0.0.1 ping)" == "PONG" ]'
interval: 1s
timeout: 5s
retries: 5
networks:
stonehenge-network:
external: true