-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (35 loc) · 794 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (35 loc) · 794 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
services:
app:
build: .
ports:
- "8080:80"
volumes:
- artwork-images:/var/www/html/assets/images
- artwork-covers:/var/www/html/assets/covers
depends_on:
db:
condition: service_healthy
environment:
- SLEUTH_DB_HOST=db
- SLEUTH_DB_PORT=3306
- SLEUTH_DB_NAME=sleuth
- SLEUTH_DB_USER=sleuth
- SLEUTH_DB_PASS=sleuth
db:
image: mysql:8.0
environment:
MYSQL_ROOT_PASSWORD: rootpass
MYSQL_DATABASE: sleuth
MYSQL_USER: sleuth
MYSQL_PASSWORD: sleuth
volumes:
- db-data:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 5s
timeout: 3s
retries: 10
volumes:
db-data:
artwork-images:
artwork-covers: