38 lines
779 B
YAML
38 lines
779 B
YAML
services:
|
|
gocheck:
|
|
build:
|
|
context: .
|
|
dockerfile: Containerfile
|
|
args:
|
|
USER_ID: 1000
|
|
GROUP_ID: 1000
|
|
container_name: gocheck-container
|
|
ports:
|
|
- "${PORT:-8080}:8080"
|
|
environment:
|
|
- PORT=8080
|
|
volumes:
|
|
- gocheck-data:/app
|
|
restart: unless-stopped
|
|
# Rootless Podman compatibility
|
|
security_opt:
|
|
- no-new-privileges:true
|
|
# Use host networking for better rootless compatibility
|
|
network_mode: host
|
|
healthcheck:
|
|
test: [
|
|
"CMD",
|
|
"wget",
|
|
"--no-verbose",
|
|
"--tries=1",
|
|
"--spider",
|
|
"http://localhost:8080/",
|
|
]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 10s
|
|
|
|
volumes:
|
|
gocheck-data:
|
|
driver: local
|