-
Notifications
You must be signed in to change notification settings - Fork 212
/
docker-compose.dev.yaml
93 lines (87 loc) · 2.31 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
81
82
83
84
85
86
87
88
89
90
91
92
93
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
ecommerce_mysql:
build: ./data/mysql/ecommerce
restart: always
ports:
- '3307:3306'
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: ecommerce
MYSQL_USER: mysql
MYSQL_PASSWORD: password
volumes:
- ./data/mysql/ecommerce/data:/var/lib/mysql
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: