Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: "3.9"
- services:
- db:
- image: postgres:16
- container_name: Tandoor-DB
- hostname: tandoor-db
- security_opt:
- - no-new-privileges:true
- healthcheck:
- test: ["CMD", "pg_isready", "-q", "-d", "tandoor", "-U", "tandooruser"]
- timeout: 45s
- interval: 10s
- retries: 10
- volumes:
- - /volume3/docker/tandoor/db:/var/lib/postgresql/data
- env_file:
- - stack.env
- restart: always
- tandoor:
- image: vabene1111/recipes:latest
- container_name: Tandoor
- hostname: tandoor
- security_opt:
- - no-new-privileges:true
- healthcheck:
- test: wget --no-verbose --tries=1 --spider http://localhost:8080 || exit 1
- volumes:
- - /volume3/docker/tandoor/staticfiles:/opt/recipes/staticfiles
- - /volume3/docker/tandoor/mediafiles:/opt/recipes/mediafiles
- - /volume3/docker/tandoor/nginx:/opt/recipes/nginx/conf.d
- env_file:
- - stack.env
- restart: always
- depends_on:
- db:
- condition: service_started
- nginx:
- image: nginx:mainline-alpine
- container_name: Tandoor-NGINX
- hostname: nginx-tandoor
- security_opt:
- - no-new-privileges:true
- healthcheck:
- test: wget --no-verbose --tries=1 --spider http://localhost:80 || exit 1
- volumes:
- - /volume3/docker/tandoor/staticfiles:/static:ro
- - /volume3/docker/tandoor/mediafiles:/media:ro
- - /volume3/docker/tandoor/nginx:/etc/nginx/conf.d:ro
- ports:
- - 9815:80
- env_file:
- - stack.env
- restart: always
- depends_on:
- tandoor:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement