forked from als-computing/splash_links
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
31 lines (30 loc) · 744 Bytes
/
docker-compose.yml
File metadata and controls
31 lines (30 loc) · 744 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
# Sample docker-compose file for setting up a mongo instance alongside a splash-ml instance
version: "3"
services:
db:
image: mongo:4.2
hostname: mongo
container_name: db
environment:
- TZ=US/Pacific
expose:
- 27017
ports:
- 127.0.0.1:27017:27017
restart: always
entrypoint: [ "/usr/bin/mongod", "--bind_ip_all"]
# You probably want to uncomment this and persist outside of the container
# volumes:
# - ${MONGO_DB_LOC}:/data/db
app:
build:
context: .
dockerfile: Dockerfile
container_name: app
environment:
APP_MODULE: "tagging.api:app"
LOGLEVEL: DEBUG
MONGO_DB_URI: mongodb://db:27017
MAX_WORKERS: 1
ports:
- 8087:80