-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
42 lines (42 loc) · 997 Bytes
/
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
41
42
version: '2.1'
services:
scheduler:
container_name: scheduler
image: danreynolds/summonerexpert-scheduler:0.0.21
command: cron && tail -f /dev/null
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ml:
container_name: ml
image: danreynolds/summonerexpert_ml:0.0.9
volumes:
- jobs:/app/jobs
db:
container_name: db
image: postgres
redis:
container_name: redis
command: [redis-server, /usr/local/etc/redis/redis.conf, --requirepass, $REDIS_PASSWORD]
healthcheck:
test: "redis-cli -a $REDIS_PASSWORD PING | grep PONG"
interval: 30s
image: "redis:latest"
volumes:
- ./data:/data
- ./redis.conf:/usr/local/etc/redis/redis.conf
app:
container_name: app
depends_on:
redis:
condition: service_healthy
db:
condition: service_started
volumes:
- jobs:/app/jobs
nginx:
container_name: nginx
image: nginx
depends_on:
- app
volumes:
jobs: