-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (38 loc) · 951 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (38 loc) · 951 Bytes
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
version: '2'
services:
app:
image: docker4data/talkvoter:prod-1.0.1
build:
context: ./
dockerfile: talkvoter/Dockerfile
command: /app/docker-utils/run-app.sh
volumes:
- .:/app/proj/
- static-volume:/app/htdocs/static/
environment:
- DATABASE_URL=postgres://postgres@db/postgres
- SITE_DIR=/app/
- SECRET_KEY=super secret key
- PREDICT_ENDPOINT=http://predict:8000/predict/
depends_on:
- db
predict:
image: docker4data/predict_api:prod-1.0.1
build:
context: ./
dockerfile: predict_api/Dockerfile
command: /app/docker-utils/run-predict.sh
volumes:
- .:/app/proj/
- static-volume:/app/htdocs/static/
environment:
- SITE_DIR=/app/
depends_on:
- app
db:
image: postgres:10-alpine
volumes:
- pgdata:/var/lib/postgresql/data/
volumes:
static-volume:
pgdata: