forked from crscillitoe/RoboBanana
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose-dev.yaml
48 lines (48 loc) · 983 Bytes
/
compose-dev.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
version: "3.8"
services:
bot:
extends:
file: compose.yaml
service: bot
entrypoint: jurigged -v bot.py
volumes:
- .:/app
depends_on:
db:
condition: service_healthy
cache:
condition: service_healthy
links:
- db
server:
extends:
file: compose.yaml
service: bot
entrypoint: hypercorn --bind 0.0.0.0:3000 --reload server.server:app
volumes:
- .:/app
depends_on:
db:
condition: service_healthy
cache:
condition: service_healthy
links:
- db
db:
image: mysql
environment:
MYSQL_DATABASE: woohoojin
MYSQL_USER: woohoojinuser
MYSQL_PASSWORD: testpassword
MYSQL_ROOT_HOST: '%'
expose:
- '3306'
volumes:
- robobanana-db:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
timeout: 1s
interval: 1s
retries: 10
volumes:
robobanana-db: