-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.dev.yml
More file actions
40 lines (39 loc) · 1.62 KB
/
Copy pathcompose.dev.yml
File metadata and controls
40 lines (39 loc) · 1.62 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
# Containerized development runtime. Devkit adds this checkout's PostgreSQL service.
services:
node:
build:
context: .
dockerfile: docker/dev/Dockerfile
working_dir: /workspace
user: "${HOST_UID:?host uid is required}:${HOST_GID:?host gid is required}"
init: true
env_file:
- path: .env
required: false
environment:
HOME: /tmp/devkit-home
NODE_ENV: development
WINDOWS_BUILD_TOOLS: /opt/windows-build-tools
WINDOWS_BUILD_HOST: ${PERSISTENT_WINDOWS_HOST:-laptop}
WINDOWS_BUILD_REPO: ${PWD:?host WSL checkout path is required}
WINDOWS_BUILD_HOST_TOOLS: ${HOME}/development/windows-build-tools
DATABASE_URL: ${DATABASE_URL:?database URL is required}
API_PORT: ${API_PORT:?api port is required}
CLIENT_ORIGIN: ${CLIENT_ORIGIN:?client origin is required}
VITE_API_PORT: ${VITE_API_PORT:?vite api port is required}
VITE_DEV_ALLOWED_HOSTS: ${VITE_DEV_ALLOWED_HOSTS:?allowed hosts are required}
VITE_DEV_HOST: 0.0.0.0
VITE_DEV_PORT: ${VITE_DEV_PORT:?vite port is required}
ports:
- "127.0.0.1:${DEVKIT_WEB_PORT:?web port is required}:${VITE_DEV_PORT:?vite port is required}"
- "[::1]:${DEVKIT_WEB_PORT:?web port is required}:${VITE_DEV_PORT:?vite port is required}"
volumes:
- .:/workspace
- ${HOME}/development/windows-build-tools:/opt/windows-build-tools:ro
- android-home:/tmp/devkit-home/.android
depends_on:
database:
condition: service_healthy
command: sh -lc 'scripts/dev/adb-connect.sh || true; node scripts/dev/run-dev.mjs --container-runtime'
volumes:
android-home: