-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.yml
38 lines (36 loc) · 1002 Bytes
/
common.yml
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
services:
database:
image: mysql
restart: unless-stopped
environment:
- MYSQL_ROOT_PASSWORD=${ALGOBATTLE_DB_PW}
healthcheck:
test: mysqladmin ping --protocol tcp
interval: 2s
timeout: 4s
retries: 30
volumes:
- db-data:/var/lib/mysql
backend:
environment:
- TZ=Europe/Berlin
- ALGOBATTLE_DB_PW=${ALGOBATTLE_DB_PW}
- ALGOBATTLE_BASE_URL=${ALGOBATTLE_BASE_URL}
volumes:
- db-files:/algobattle/dbfiles
tty: true
restart: on-failure
runner:
command: algobattle_runner
stop_grace_period: 1s
environment:
- ALGOBATTLE_IO_DIR=${ALGOBATTLE_IO_DIR}
- TZ=Europe/Berlin
- ALGOBATTLE_DB_PW=${ALGOBATTLE_DB_PW}
- ALGOBATTLE_BASE_URL=${ALGOBATTLE_BASE_URL}
volumes:
- db-files:/algobattle/dbfiles
- /var/run/docker.sock:/var/run/docker.sock
- ${ALGOBATTLE_IO_DIR}:/algobattle/io
tty: true
restart: on-failure