-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathdocker-compose.yml
40 lines (39 loc) · 1.05 KB
/
docker-compose.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
39
40
version: '3.9'
services:
app:
build:
context: .
dockerfile: ./docker/app/python/Dockerfile
args:
BASE_IMAGE: ishocon1-app-base:latest
# ローカルで base image をビルドしない場合は以下を利用すること
# BASE_IMAGE: showwin/ishocon1_app_base:latest
image: ishocon1-app-python:latest
environment:
ISHOCON_APP_LANG: "${ISHOCON_APP_LANG-python}"
healthcheck:
test: ["CMD", "test", "-f", "/tmp/ishocon-app"]
interval: 10s
timeout: 3s
retries: 5
start_period: 120s
command: [/home/ishocon/run.sh]
tty: true
ports:
- "80:80"
- "8080:8080"
- "3306:3306"
volumes:
- ./webapp:/home/ishocon/webapp
bench:
image: ishocon1-bench:latest
# ローカルで bench image をビルドしない場合は以下を利用すること
# image: showwin/ishocon1_bench:latest
command: tail -f /dev/null
links:
- app
environment:
TARGET: app
depends_on:
app:
condition: service_healthy