web-application-engineering/docker-compose.yml
2021-05-04 18:51:18 +02:00

33 lines
796 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 makemigrations app_be; \
python manage.py migrate; \
python manage.py runserver 0.0.0.0:8000 --no-reload;
env_file:
- .env
volumes:
- ./container_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