31 lines
796 B
YAML
31 lines
796 B
YAML
services:
|
|
password-generator:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
image: pw-generator:local
|
|
container_name: pw-generator
|
|
restart: unless-stopped
|
|
ports:
|
|
- "8080:8080"
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
APP_ENV: production
|
|
APP_DEBUG: "false"
|
|
LOG_LEVEL: warning
|
|
PORT: "8080"
|
|
RATE_LIMIT: "120"
|
|
CORS_ORIGIN: "http://localhost:8080"
|
|
CORS_METHODS: "GET,POST,OPTIONS"
|
|
CORS_HEADERS: "Content-Type,Authorization"
|
|
volumes:
|
|
- ./logs:/var/www/html/logs
|
|
- ./config/config.json:/var/www/html/config/config.json:ro
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "curl -fsS http://127.0.0.1:8080/ >/dev/null || exit 1"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 20s
|