forked from EleutherAI/gpt-neo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
67 lines (62 loc) · 1.51 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
57
58
59
60
61
62
63
64
65
66
67
version: '3'
services:
mongo:
image: mongo
ports:
- 127.0.0.1:27017:27017
environment:
MONGO_INITDB_ROOT_USERNAME: user
MONGO_INITDB_ROOT_PASSWORD: password
MONGO_INITDB_DATABASE: db
expose:
- 27017
networks:
- omniboard
volumes:
- ./data:/data/db
mongoClientTemp:
image: mongo:latest
container_name: mongoClientTemp
links:
- mongo:mongo
command: mongo --host mongo -u user -p password --eval "db.getSiblingDB('db').createUser({user:'readonly', pwd:'password', roles:[{role:'read',db:'db'}]});"
depends_on:
- mongo
networks:
- omniboard
omniboard_readonly:
#image: vivekratnavel/omniboard:latest
build: https://github.com/lucidrains/omniboard.git
command: ["--mu", "mongodb://readonly:password@mongo:27017/db"]
ports:
- 0.0.0.0:8081:9000
networks:
- omniboard
depends_on:
- mongo
omniboard:
#image: vivekratnavel/omniboard:latest
build: https://github.com/lucidrains/omniboard.git
command: ["--mu", "mongodb://user:password@mongo:27017/db?authSource=admin"]
expose:
- 9000
networks:
- omniboard
depends_on:
- mongo
nginx:
image: dhswt/nginx-basic-auth:1.3
environment:
- HTPASSWD=isaac: #put passwd here
- FORWARD_HOST=omniboard
- FORWARD_PORT=9000
networks:
- omniboard
depends_on:
- omniboard
ports:
- 0.0.0.0:8080:80
expose:
- 8080
networks:
omniboard: