-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (48 loc) · 987 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
43
44
45
46
47
48
49
50
51
52
53
54
version: "3"
services:
pyapi:
build:
context: ./pyapi
ports:
- 8000:8000
command: >
"python manage.py migrate
&& /opt/pyapi/wait-for-it.bash -t 0 julia:8081 -- python manage.py runserver 0.0.0.0:8000"
environment:
- REDIS_HOST=redis
- SQL_HOST=db
- SQL_PORT=5432
volumes:
- ./pyapi:/opt/pyapi
redis:
image: redis
command: redis-server
expose:
- 6379
celery:
build:
context: ./pyapi
ports:
- 5000:5000
command: >
"celery -A pyapi worker -l info"
environment:
- REDIS_HOST=redis
- SQL_HOST=db
- SQL_PORT=5432
db:
image: postgres
restart: always
environment:
- POSTGRES_USER=pguser
- POSTGRES_PASSWORD=pgpass
- POSTGRES_DB=pgdb
expose:
- 5432
julia:
container_name: julapi
build:
context: julapi/
command: julia --project=/opt/julapi http.jl
ports:
- "8081:8081"