-
Notifications
You must be signed in to change notification settings - Fork 114
/
docker-compose.base.yml
47 lines (47 loc) · 1.06 KB
/
docker-compose.base.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
version: '2'
services:
base:
build: .
volumes:
- ./stethoscope:/code/stethoscope
- ./instance:/code/instance
- ./config:/code/config
- ./logs:/logs
login:
extends:
file: docker-compose.base.yml
service: base
environment:
- LOGFILE=/logs/login.log
- STETHOSCOPE_LOGIN_INSTANCE_PATH=/code/instance
ports:
- "5002:5002"
command: ["stethoscope-login", "runserver", "-p", "5002", "-h", "0.0.0.0"]
api:
extends:
file: docker-compose.base.yml
service: base
environment:
- LOGFILE=/logs/api.log
- STETHOSCOPE_API_INSTANCE_PATH=/code/instance
- STETHOSCOPE_LOGIN_HOST=login:5002
ports:
- "5001:5001"
command:
- "twistd"
- "--nodaemon"
- "--pidfile"
- ""
- "web"
- "--port"
- "tcp:port=5001"
- "--class=stethoscope.api.resource.resource"
nginx:
build:
context: .
dockerfile: Dockerfile-nginx
ports:
- "5000:5000"
volumes:
- ./stethoscope:/code/stethoscope
- ./logs:/logs