infra-v1/applications/roles/home-apps/files/tandoor-compose.yml

40 lines
790 B
YAML
Raw Normal View History

2022-06-12 16:14:10 +00:00
version: '3'
services:
db_recipes:
image: postgres:11-alpine
restart: always
volumes:
- ./postgresql:/var/lib/postgresql/data
env_file:
- ./tandoor.env
web_recipes:
image: vabene1111/recipes
restart: always
env_file:
- ./tandoor.env
volumes:
- staticfiles:/opt/recipes/staticfiles
- nginx_config:/opt/recipes/nginx/conf.d
- ./mediafiles:/opt/recipes/mediafiles
depends_on:
- db_recipes
nginx_recipes:
image: nginx:mainline-alpine
restart: always
env_file:
- ./.env
depends_on:
- web_recipes
volumes:
- nginx_config:/etc/nginx/conf.d:ro
- staticfiles:/static:ro
- ./mediafiles:/media:ro
ports:
- 1080:80
volumes:
nginx_config:
staticfiles: