-
Notifications
You must be signed in to change notification settings - Fork 26
/
docker-compose-dev.yaml
46 lines (46 loc) · 1.15 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
services:
app:
container_name: single_cell
image: "${GCR_IMAGE}"
environment:
VITE_RUBY_HOST: vite
depends_on:
- vite
env_file:
- config/secrets/.source_env.bash
entrypoint: ./rails-dev-entrypoint.sh
ports:
- 3000:3000
- 3001:3001
- 587:587
expose:
- 27017
volumes:
- .:/home/app/webapp
- type: volume
target: /home/app/webapp/node_modules
deploy:
resources:
limits:
memory: "${PORTAL_RAM_GB}gb"
vite:
container_name: single_cell_vite
image: "${GCR_IMAGE}"
entrypoint: ./vite-dev-entrypoint.sh
environment:
RAILS_ENV: development
DISABLE_SENTRY: true
VITE_RUBY_HOST: 0.0.0.0
VITE_FRONTEND_SERVICE_WORKER_CACHE: "${VITE_FRONTEND_SERVICE_WORKER_CACHE}"
VITE_DEV_MODE: "\"docker-compose\"" # extra quotes are to encode as JSON string value
SENTRY_AUTH_TOKEN: "${SENTRY_AUTH_TOKEN}"
ports:
- 3036:3036
volumes:
- .:/home/app/webapp
- type: volume
target: /home/app/webapp/node_modules
deploy:
resources:
limits:
memory: "${VITE_RAM_GB}gb"