Repository navigation
Expand file tree
/
Copy pathcompose-dev.yml
More file actions
51 lines (49 loc) · 1.66 KB
/
Copy pathcompose-dev.yml
File metadata and controls
51 lines (49 loc) · 1.66 KB
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
services:
server:
build:
context: ./server
dockerfile: Dockerfile.dev
ports:
- "${DEV_SERVER_HOST_PORT:-8880}:8000"
volumes:
- ./server:/app
- ${COPICK_CONFIG_PATH:?Set COPICK_CONFIG_PATH in .env}:/data/copick_config.json:ro
- ${COPICK_DATA_DIR:-./data}:/data/copick_data
# Service-account SSH key for reaching HPC overlay roots (registry
# projects only). Mount only when SLURM_KEYFILE is set on the host.
- ${SLURM_KEYFILE:-/dev/null}:/run/secrets/slurm_key:ro
environment:
- COPICK_CONFIG_PATHS=["/data/copick_config.json"]
- REGISTRY_URL=${REGISTRY_URL:-}
- REGISTRY_REFRESH_SECONDS=${REGISTRY_REFRESH_SECONDS:-60}
- SERVICE_CACHE_SIZE=${SERVICE_CACHE_SIZE:-8}
- CORS_ORIGINS=["http://localhost:${DEV_CLIENT_HOST_PORT:-5180}","http://localhost:${DEV_SERVER_HOST_PORT:-8880}"]
- BASE_PATH=${BASE_PATH:-}
- SLURM_USER=${SLURM_USER:-}
- SLURM_KEYFILE=/run/secrets/slurm_key
- SLURM_SSH_PORT=${SLURM_SSH_PORT:-22}
extra_hosts:
# Lets REGISTRY_URL=http://host.containers.internal:<port>/... reach the host machine.
- "host.containers.internal:host-gateway"
- "host.docker.internal:host-gateway"
networks:
- copick-net
client:
build:
context: ./client
dockerfile: Dockerfile.dev
ports:
- "${DEV_CLIENT_HOST_PORT:-5180}:5173"
volumes:
- ./client:/app
- /app/node_modules
environment:
- API_PROXY_TARGET=http://server:8000
- VITE_HMR_CLIENT_PORT=${DEV_CLIENT_HOST_PORT:-5180}
depends_on:
- server
networks:
copick-net:
networks:
copick-net:
driver: bridge