-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (50 loc) · 1.36 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
version: '3'
services:
postgres:
image: 'postgres:latest'
ports:
- '5432:5432'
volumes:
- './var/postgres:/var/lib/postgresql/data'
- '/etc/localtime:/etc/localtime'
redis:
image: 'redis:latest'
command: redis-server --appendonly yes
ports:
- '6379:6379'
volumes:
- './var/redis:/data'
- '/etc/localtime:/etc/localtime'
bot:
build: .
command: serve
environment:
- https_proxies=
links:
- 'postgres'
- 'redis'
volumes:
- './notebooks:/nlabot/notebooks'
- './nlabot_settings.py:/nlabot/nlabot_settings.py'
- '/etc/localtime:/etc/localtime'
restart: always
ta:
build: .
command: work
links:
- 'postgres'
- 'redis'
volumes:
- './notebooks:/nlabot/notebooks'
- '/var/run/docker.sock:/var/run/docker.sock'
- './nlabot_settings.py:/nlabot/nlabot_settings.py'
- '/etc/localtime:/etc/localtime'
- '/tmp:/tmp'
restart: on-failure
# this docker image is run from ta and is never used manually
cell:
build: .
command: imprison test notebook.ipynb
volumes:
- './notebooks/testnotebook.ipynb:/nlabot/notebook.ipynb'
- '/etc/localtime:/etc/localtime'