initialization
This commit is contained in:
commit
9ff09693ed
92 files changed
+46209
No files matched your search
@@ -0,0 +1,30 @@
|
||||
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
|
||||
Reference in new issue
Block a user