-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
62 lines (58 loc) · 1.4 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
services:
drupal:
build:
context: .
dockerfile: ./Dockerfile
container_name: drupal
ports:
- "8080:80"
volumes:
- /root/.composer
- ./files:/app/web/sites/default/files
- ./themes/custom/jwrf:/app/web/themes/custom/jwrf
- ./themes/custom/umami_analytics:/app/web/themes/custom/umami_analytics
depends_on:
- db
networks:
- caddy_net
db:
image: mysql:latest
container_name: mysql
environment:
MYSQL_DATABASE: ${DB_NAME}
MYSQL_USER: ${DB_USER}
MYSQL_PASSWORD: ${DB_PASS}
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASS}
volumes:
- ./db_data:/var/lib/mysql
healthcheck:
test: ["CMD-SHELL", "mysqladmin ping -h 127.0.0.1 -u $$MYSQL_USER --password=$$MYSQL_PASSWORD"]
interval: 5s
timeout: 5s
retries: 5
networks:
- caddy_net
umami:
image: ghcr.io/umami-software/umami:mysql-latest
ports:
- "3000:3000"
environment:
DATABASE_URL: mysql://${DB_USER}:${DB_PASS}@mysql:3306/${DB_NAME}
DATABASE_TYPE: mysql
APP_SECRET: ${UMAMI_SALT}
depends_on:
db:
condition: service_healthy
restart: always
healthcheck:
test: ["CMD-SHELL", "curl http://localhost:3000/api/heartbeat"]
interval: 5s
timeout: 5s
retries: 5
networks:
- caddy_net
volumes:
db_data:
networks:
caddy_net:
external: true