-
Notifications
You must be signed in to change notification settings - Fork 46
/
docker-compose.yml
56 lines (52 loc) · 1.05 KB
/
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
55
56
version: '3'
# usage:
# (sudo) docker-compose up -d
# (sudo) docker-compose down
services:
mongodb:
image: mongo:7
container_name: mongodb
networks:
- scout-net
ports:
- '27013:27017'
expose:
- '27017'
scout-cli:
build: .
platform: linux/amd64
container_name: scout-cli
command: bash -c "
scout --host mongodb setup demo"
volumes:
- ./scout:/home/worker/app/scout
networks:
- scout-net
depends_on:
- mongodb
scout-web:
build:
context: .
dockerfile: Dockerfile-server
platform: linux/amd64
expose:
- '8000'
ports:
- '8000:8000'
environment:
SCOUT_CONFIG: /home/worker/app/scout/server/config.py
MONGO_HOST: mongodb
MONGO_DBNAME: scout-demo
GUNICORN_WORKERS: 1
GUNICORN_TREADS: 1
GUNICORN_BIND: 0.0.0.0:8000
GUNICORN_TIMEOUT: 400
volumes:
- ./scout:/home/worker/app/scout
networks:
- scout-net
depends_on:
- mongodb
networks:
scout-net:
driver: bridge