43 lines
924 B
YAML
43 lines
924 B
YAML
version: "3"
|
|
services:
|
|
db_recipes:
|
|
restart: always
|
|
image: postgres:11-alpine
|
|
volumes:
|
|
- tandoor_postgresql:/var/lib/postgresql/data
|
|
env_file:
|
|
- ./.env
|
|
|
|
web_recipes:
|
|
restart: always
|
|
image: vabene1111/recipes
|
|
env_file:
|
|
- ./.env
|
|
volumes:
|
|
- tandoor_staticfiles:/opt/recipes/staticfiles
|
|
- tandoor_nginx_config:/opt/recipes/nginx/conf.d
|
|
- tandoor_mediafiles:/opt/recipes/mediafiles
|
|
depends_on:
|
|
- db_recipes
|
|
|
|
nginx_recipes:
|
|
image: nginx:mainline-alpine
|
|
container_name: tandoor-recipes
|
|
restart: always
|
|
ports:
|
|
- 8095:80
|
|
env_file:
|
|
- ./.env
|
|
depends_on:
|
|
- web_recipes
|
|
volumes:
|
|
- tandoor_nginx_config:/etc/nginx/conf.d:ro
|
|
- tandoor_staticfiles:/static:ro
|
|
- tandoor_mediafiles:/media:ro
|
|
|
|
volumes:
|
|
tandoor_nginx_config:
|
|
tandoor_staticfiles:
|
|
tandoor_mediafiles:
|
|
tandoor_postgresql:
|
|
|