42 lines
953 B
YAML
42 lines
953 B
YAML
# Development configuration for local testing
|
|
services:
|
|
template:
|
|
build:
|
|
context: ./docker/template
|
|
dockerfile: Dockerfile
|
|
image: template:dev
|
|
ports:
|
|
- "3000:3000"
|
|
volumes:
|
|
- ./docker/template/src:/app/src
|
|
- ./temp:/app/temp
|
|
environment:
|
|
- NODE_ENV=development
|
|
- DEBUG=true
|
|
- LOG_LEVEL=debug
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 10s
|
|
networks:
|
|
- dev_network
|
|
|
|
# Add any additional services you need here
|
|
# Example:
|
|
# db:
|
|
# image: postgres:14
|
|
# environment:
|
|
# - POSTGRES_PASSWORD=postgres
|
|
# - POSTGRES_USER=postgres
|
|
# - POSTGRES_DB=template
|
|
# volumes:
|
|
# - ./temp/postgres-data:/var/lib/postgresql/data
|
|
# networks:
|
|
# - dev_network
|
|
|
|
networks:
|
|
dev_network:
|
|
driver: bridge |