-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
36 lines (32 loc) · 969 Bytes
/
docker-compose.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
version: '3.7'
services:
api-server:
build:
context: .
restart: "no"
environment:
RUST_LOG: "${RUST_LOG:-info,converter=debug,axum=debug}"
RUST_LOG_STYLE: "always"
CARGO_BUILD_DEP_INFO_BASEDIR: "."
ports:
- "8080:80"
- "8443:443"
volumes:
- "./src:/usr/src/project/src"
- "./${CONTAINER_DIR:-dtarget}:/usr/src/project/target"
- "./Cargo.toml:/usr/src/project/Cargo.toml"
- "./Cargo.lock:/usr/src/project/Cargo.lock"
- "./data:/usr/src/project/data"
working_dir: '/usr/src/project'
user: "${SERVICE_UID:-1000}:${SERVICE_GID:-100}"
command: cargo run serve "${RANDOM_DBF:-./data/random-data.dbf}" 8080
vite:
image: node:18
volumes:
- "./${WEB_DIR:-web}:/code"
working_dir: "/code/converter-app"
user: "${SERVICE_UID:-1000}:${SERVICE_GID:-100}"
ports:
- "8081:5173"
init: true
command: "bash -c 'npm install && npm run dev'"