forked from briefercloud/briefer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yaml
58 lines (55 loc) · 1.5 KB
/
docker-compose.dev.yaml
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
services:
postgres:
container_name: briefer_postgres_dev
image: postgres
ports:
- '5432:5432'
environment:
POSTGRES_DB: 'briefer'
POSTGRES_USER: 'postgres'
POSTGRES_PASSWORD: 'password'
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U postgres -d briefer || exit 1']
interval: 10s
timeout: 5s
retries: 5
volumes:
- postgres_dev_data:/var/lib/postgresql/data
jupyter_server:
container_name: briefer_jupyter_server_dev
labels:
'cloud.briefer.jupyter-container': 'true'
build:
context: 'apps/api'
dockerfile: 'jupyter.Dockerfile'
command:
- 'sh'
- '-c'
- 'jupyter server --ip=0.0.0.0 --ZMQChannelsWebsocketConnection.iopub_data_rate_limit=1.0e10 --ZMQChannelsWebsocketConnection.iopub_msg_rate_limit=1.0e6 --ServerApp.max_body_size=107374182400'
ports:
- '8888:8888'
environment:
# Use passed value
JUPYTER_TOKEN: ${JUPYTER_TOKEN:?error}
volumes:
- ./jupyterfiles:/home/jupyteruser
restart: always
healthcheck:
test: ['CMD-SHELL', 'curl -f http://localhost:8888/api || exit 1']
interval: 5s
timeout: 10s
retries: 5
ecommerce:
build: data/psql/ecommerce
restart: always
ports:
- '5433:5432'
environment:
POSTGRES_DB: 'ecommerce'
POSTGRES_USER: 'postgres'
POSTGRES_PASSWORD: 'password'
volumes:
- ecommerce_data:/var/lib/postgresql/data
volumes:
postgres_dev_data:
ecommerce_data: