-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (38 loc) · 914 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (38 loc) · 914 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
version: "3.8"
services:
web:
container_name: multiqc_api
restart: always
build: .
command: uvicorn app.main:app ${UVICORN_RELOAD} --host 0.0.0.0
volumes:
- .:/code
ports:
- "8008:8000"
environment:
# Set in .env
GITHUB_TOKEN: $GITHUB_TOKEN
# Matches the "db" service below
DATABASE_URL: mysql+pymysql://root:1@db:3306/multiqc
LOGZIO_TOKEN: $LOGZIO_TOKEN
depends_on:
wait-for-db:
condition: service_completed_successfully
db:
image: mysql:8.0
container_name: multiqc_db
restart: always
volumes:
- ./.mysql-data/db:/var/lib/mysql
ports:
- "3306:3306"
environment:
MYSQL_DATABASE: mysql+pymysql
MYSQL_USER: root
MYSQL_PASSWORD: 1
wait-for-db:
container_name: wait_for_db
image: atkrad/wait4x
depends_on:
- db
command: tcp db:3306 -t 30s -i 250ms