web-application-engineering/docker-compose.yml
Marco Zeisler 8c34ece094 use .env vars in waecm_g4_be;
mounted ./db to /code/app_be/db to persist db;
2021-05-03 15:56:05 +02:00

30 lines
685 B
YAML

version: "2"
# INFO: to not build but just pull - build keys are commented out
services:
waecm_g4_be:
container_name: waecm_g4_be_container
hostname: waecm_g4_be
image: pfingstfrosch/waecm-2021-group-04-bsp-1-be
build:
context: ./backend
dockerfile: ./Dockerfile
command: python manage.py runserver 0.0.0.0:8000
env_file:
- .env
volumes:
- ./db:/code/app_be/db
ports:
- 8000:8000
waecm_g4_fe:
container_name: waecm_g4_fe_container
hostname: waecm_g4_fe
image: pfingstfrosch/waecm-2021-group-04-bsp-1-fe
build:
context: ./frontend
dockerfile: ./Dockerfile
ports:
- 4200:80