-
Notifications
You must be signed in to change notification settings - Fork 215
/
docker-compose.dev.yaml
80 lines (75 loc) · 2.01 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
services:
postgres:
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
db_migration:
build:
context: '.'
dockerfile: 'apps/api/Dockerfile'
working_dir: '/app/packages/database'
command: ['npx', 'prisma', 'migrate', 'deploy']
environment:
NODE_ENV: 'development'
POSTGRES_PRISMA_URL: 'postgresql://postgres:password@postgres:5432/briefer?schema=public'
depends_on:
postgres:
condition: service_healthy
jupyter_server:
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
haproxy:
image: haproxy:3.0
volumes:
- type: bind
source: ./haproxy.cfg
target: /usr/local/etc/haproxy/haproxy.cfg
volume:
nocopy: true
ports:
- '8080:8080'
volumes:
postgres_dev_data:
ecommerce_data: