forked from vcon-dev/vcon
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
63 lines (59 loc) · 1.2 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
version: "3.3"
services:
conserver:
build: .
command: bash -c "python ./init.py"
volumes:
- .:/app
ports:
- "8000:8000"
depends_on:
- redis
env_file:
- .env
redis:
image: "redis/redis-stack:latest"
ports:
- "8001:8001"
environment:
REDIS_ARGS: --save 20 1
mem_limit: 1gb
volumes:
- ./.data:/data
healthcheck:
test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
interval: 30s
timeout: 10s
retries: 5
mongo:
image: mongo
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
profiles:
- dev
mongo-express:
image: mongo-express
restart: always
ports:
- 8081:8081
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: example
ME_CONFIG_MONGODB_URL: mongodb://root:example@mongo:27017/
profiles:
- dev
jupyter:
build: .
command: jupyter notebook --ip=0.0.0.0 --port=9999 --no-browser --allow-root
volumes:
- .:/app
ports:
- "9999:9999"
depends_on:
- redis
env_file:
- .env
profiles:
- dev