More consistent names, added env var for frontend

This commit is contained in:
Kevin Grossmann 2021-01-05 13:17:14 +01:00
parent cc1fdb6419
commit 76aac242cb

View file

@ -2,23 +2,26 @@
version: "3.1"
services:
# Vue Frontend
mealie:
mealie-frontend:
image: mealie-frontend:dev
build:
context: ./frontend
dockerfile: frontend.Dockerfile
container_name: mealie_frontend
restart: always
ports:
- 9920:8080
environment:
VUE_APP_API_BASE_URL: "http://mealie-api:9000"
volumes:
- ./frontend:/app
- ./frontend/:/app
- /app/node_modules
# Fast API
mealie-api:
image: mealie-api:dev
build:
context: ./
dockerfile: Dockerfile.dev
container_name: mealie-api
restart: always
ports:
- 9921:9000