-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
40 lines (35 loc) · 949 Bytes
/
docker-compose.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
version: "3.8"
services:
rq-dashboard:
image: ucyo/rq-dashboard:latest
init: true
env_file:
- ./env/.rq.env
depends_on:
- redis
- worker
redis:
image: redis:5
init: true
worker:
init: true
image: code
env_file:
- ./env/.rq.env
- ./env/.cdsapirc.env
command: /bin/bash -c "wait-for-it -s -t 60 redis:6379 && envsubst '$$API_KEY $$UID $$VERIFY' < /home/python/code/cdsapirc.template > /home/python/.cdsapirc && rq worker --url redis://redis:6379"
depends_on:
- redis
code:
init: true
build:
context: ./code
dockerfile: Dockerfile
image: code
env_file:
- ./env/.rq.env
- ./env/.cdsapirc.env
command: /bin/bash -c "wait-for-it -s -t 60 redis:6379 && envsubst '$$API_KEY $$UID $$VERIFY' < /home/python/code/cdsapirc.template > /home/python/.cdsapirc && tail -F /dev/null"
depends_on:
- redis
- worker