-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose-dev.yml
More file actions
39 lines (37 loc) · 1015 Bytes
/
compose-dev.yml
File metadata and controls
39 lines (37 loc) · 1015 Bytes
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
services:
server:
build:
context: ./server
dockerfile: Dockerfile.dev
ports:
- "${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
environment:
- COPICK_CONFIG_PATH=/data/copick_config.json
- CORS_ORIGINS=["http://localhost:${CLIENT_HOST_PORT:-5180}","http://localhost:${SERVER_HOST_PORT:-8880}"]
- BASE_PATH=${BASE_PATH:-}
networks:
- copick-net
client:
build:
context: ./client
dockerfile: Dockerfile.dev
ports:
- "${CLIENT_HOST_PORT:-5180}:5173"
volumes:
- ./client:/app
- /app/node_modules
environment:
- API_PROXY_TARGET=http://server:8000
- VITE_HMR_CLIENT_PORT=${CLIENT_HOST_PORT:-5180}
- BASE_PATH=${BASE_PATH:-}
depends_on:
- server
networks:
- copick-net
networks:
copick-net:
driver: bridge