-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
53 lines (47 loc) · 972 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
version: "3.8"
services:
redis:
image: redis
ports:
- "6379:6379"
networks:
- external-nw
postgres:
image: postgres:13-alpine
volumes:
- postgres_test:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=dbuser
- POSTGRES_PASSWORD=dbpass
- POSTGRES_DB=test
ports:
- "5432:5432"
networks:
- external-nw
server:
build:
context: .
dockerfile: Dockerfile
command: ["poetry", "run", "python", "apihub/run_server.py"]
ports:
- "5000:5000"
environment:
- OUT_KIND=LREDIS
- OUT_REDIS=redis://redis:6379/1
- OUT_NAMESPACE=api
- REDIS=redis://redis:6379/1
- DB_URI=postgresql://dbuser:dbpass@postgres/test
- DEBUG=TRUE
- RELOAD=TRUE
- PYTHONPATH=/app
links:
- redis
- postgres
networks:
- external-nw
volumes:
- .:/app
volumes:
postgres_test:
networks:
external-nw: