Initial commit: Cocina con Alma - Tandoor + public menu stack
This commit is contained in:
50
docker-compose.yml
Normal file
50
docker-compose.yml
Normal file
@@ -0,0 +1,50 @@
|
||||
services:
|
||||
db_recipes:
|
||||
restart: always
|
||||
image: postgres:15-alpine
|
||||
volumes:
|
||||
- ./tandoor/postgresql:/var/lib/postgresql/data
|
||||
env_file:
|
||||
- ./.env
|
||||
networks:
|
||||
- cocina
|
||||
|
||||
web_recipes:
|
||||
restart: always
|
||||
image: vabene1111/recipes:latest
|
||||
env_file:
|
||||
- ./.env
|
||||
ports:
|
||||
- "8080:80"
|
||||
volumes:
|
||||
- staticfiles:/opt/recipes/staticfiles
|
||||
- mediafiles:/opt/recipes/mediafiles
|
||||
- ./tandoor/settings.py:/opt/recipes/recipes/settings.py:ro
|
||||
- ./tandoor/scope_middleware.py:/opt/recipes/cookbook/helper/scope_middleware.py:ro
|
||||
depends_on:
|
||||
- db_recipes
|
||||
networks:
|
||||
- cocina
|
||||
|
||||
menu_publico:
|
||||
build: ./menu-publico
|
||||
restart: always
|
||||
ports:
|
||||
- "80:5000"
|
||||
env_file:
|
||||
- ./.env
|
||||
environment:
|
||||
- TANDOOR_URL=http://web_recipes:80
|
||||
- FLASK_ENV=production
|
||||
depends_on:
|
||||
- web_recipes
|
||||
networks:
|
||||
- cocina
|
||||
|
||||
volumes:
|
||||
staticfiles:
|
||||
mediafiles:
|
||||
|
||||
networks:
|
||||
cocina:
|
||||
driver: bridge
|
||||
Reference in New Issue
Block a user