-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (35 loc) · 909 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (35 loc) · 909 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
38
39
version: '3'
services:
bot:
build: .
networks:
- bot
environment:
DATABASE_URL: mysql://root:root@database:3306/distro_deploy
depends_on:
database:
condition: service_healthy
volumes:
- /var/run/docker.sock:/var/run/docker.sock
database:
image: mariadb:lts
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: distro_deploy
volumes:
- distro_deploy_database:/var/lib/mysql
healthcheck:
test:
[
'CMD',
'/usr/local/bin/healthcheck.sh',
'--su-mysql',
'--connect',
'--innodb_initialized',
]
networks:
- bot
volumes:
distro_deploy_database:
networks:
bot: