31 lines
657 B
YAML
31 lines
657 B
YAML
version: '3.8'
|
|
|
|
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
|
|
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
|