services: add Recipes
This commit is contained in:
parent
ebf024a141
commit
a3845f7712
3 changed files with 113 additions and 0 deletions
|
|
@ -11,6 +11,9 @@ services:
|
|||
- ./letsencrypt/letsencrypt.env
|
||||
volumes:
|
||||
- ./letsencrypt:/config
|
||||
# Recipe media should not be served by GUnicorn, don't want to setup Nginx
|
||||
- ./recipes/mediafiles:/opt/recipes/media
|
||||
- ./recipes/staticfiles:/opt/recipes/static
|
||||
ports:
|
||||
- 80:80
|
||||
- 443:443
|
||||
|
|
@ -338,3 +341,26 @@ services:
|
|||
- ./matrix:/data
|
||||
expose:
|
||||
- 8008
|
||||
|
||||
recipes:
|
||||
image: vabene1111/recipes
|
||||
restart: unless-stopped
|
||||
container_name: recipes
|
||||
env_file:
|
||||
- ./recipes/recipes.env
|
||||
- ./recipes/recipes.env.secret
|
||||
volumes:
|
||||
- ./recipes/staticfiles:/opt/recipes/staticfiles
|
||||
- ./recipes/mediafiles:/opt/recipes/mediafiles
|
||||
depends_on:
|
||||
- recipes_db
|
||||
|
||||
recipes_db:
|
||||
image: postgres:11-alpine
|
||||
restart: unless-stopped
|
||||
container_name: recipes_db
|
||||
volumes:
|
||||
- ./recipes/postgresql:/var/lib/postgresql/data
|
||||
env_file:
|
||||
- ./recipes/recipes.env
|
||||
- ./recipes/recipes.env.secret
|
||||
|
|
|
|||
Reference in a new issue