-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
50 lines (50 loc) · 1.03 KB
/
docker-compose.yaml
File metadata and controls
50 lines (50 loc) · 1.03 KB
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
services:
# SCUFFBOT
bot:
build: ./
restart: unless-stopped
volumes:
- ./.local-secrets:/secrets
- ./config.yaml.local:/config/config.yaml.local
depends_on:
db:
condition: service_healthy
env_file:
- ./.env.local
networks:
- backend
# MySQL Server
db:
image: "mysql:9.2.0"
restart: unless-stopped
env_file:
- ./db/.env
volumes:
- db_data:/var/lib/mysql
- ./db/data:/docker-entrypoint-initdb.d/
- .local-secrets/db-password:/secrets/db-password
- .local-secrets/db-root-password:/secrets/db-root-password
networks:
- backend
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "--silent"]
interval: 5s
timeout: 3s
retries: 2
start_period: 0s
# phpmyadmin
phpmyadmin:
depends_on:
- db
image: phpmyadmin
restart: always
ports:
- "8080:80"
environment:
PMA_HOST: db
networks:
- backend
volumes:
db_data:
networks:
backend: