Initialisieren
This commit is contained in:
28
docker-compose.yml
Normal file
28
docker-compose.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
# Startet nur die Entscheidomat-App (entscheidomat.com).
|
||||
# TLS und Domain-Routing übernimmt der Reverse Proxy (Caddy) auf dem
|
||||
# Produktionsserver — der ist NICHT Teil dieses Setups. Caddy muss lediglich
|
||||
# auf den unten published Port (Default 3000) dieses Containers zeigen, z. B.:
|
||||
#
|
||||
# entscheidomat.com {
|
||||
# reverse_proxy localhost:3000
|
||||
# }
|
||||
|
||||
services:
|
||||
app:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- path: .env
|
||||
required: false
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
ports:
|
||||
- "${APP_PORT:-3000}:3000"
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--spider", "-q", "http://localhost:3000/"]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
start_period: 10s
|
||||
Reference in New Issue
Block a user