libreddit/docker-compose.yml

25 lines
442 B
YAML
Raw Normal View History

2021-03-31 20:03:18 +00:00
version: "3.8"
services:
web:
build: .
restart: always
container_name: "libreddit"
ports:
- 8080:8080
user: nobody
read_only: true
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
networks:
- libreddit
2021-03-31 20:03:18 +00:00
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "--tries=1", "http://localhost:8080/settings"]
2021-03-31 20:03:18 +00:00
interval: 5m
timeout: 3s
networks:
libreddit: