Build and Publish Image / build (push) Successful in 1m27s
Translate the index.html metadata, .dockerignore, docker-compose comments and config.example.json comment to English, and restore placeholder credentials in the example config. Fix the renamed SSE-doc link and TESTING anchor. Drop the stale Vercel sync hint from the settings page and locales.
34 lines
814 B
YAML
34 lines
814 B
YAML
# DS2API development environment config
|
|
# Features:
|
|
# - source code mount (hot reload)
|
|
# - debug log level
|
|
# - auto restart
|
|
#
|
|
# Usage:
|
|
# docker-compose -f docker-compose.dev.yml up
|
|
|
|
services:
|
|
ds2api:
|
|
build:
|
|
context: .
|
|
target: go-builder
|
|
image: ds2api:dev
|
|
container_name: ds2api-dev
|
|
command: ["go", "run", "./cmd/ds2api"]
|
|
ports:
|
|
# Host port is configurable via DS2API_HOST_PORT; container port stays fixed at 5001.
|
|
- "${DS2API_HOST_PORT:-6011}:5001"
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
- HOST=0.0.0.0
|
|
- LOG_LEVEL=DEBUG
|
|
volumes:
|
|
# source code mount (live during development)
|
|
- ./:/app
|
|
# config file mount (for easy local edits)
|
|
- ./config.json:/app/config.json
|
|
restart: "no"
|
|
stdin_open: true
|
|
tty: true
|