wip
This commit is contained in:
parent
ba1f43fd8e
commit
0f9fbc9375
15 changed files with 381 additions and 297 deletions
38
podman-compose.yml
Normal file
38
podman-compose.yml
Normal file
|
@ -0,0 +1,38 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue