diff --git a/.gitignore b/.gitignore index 34e1dc9..5470936 100644 --- a/.gitignore +++ b/.gitignore @@ -11,5 +11,4 @@ __pycache__ secrets.sh logs/ .env* -alembic-*.ini -docker-compose.yml \ No newline at end of file +alembic-*.ini \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..bdc3824 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,23 @@ +version: '3' + +services: + frontend: + restart: always + build: + context: ./ + dockerfile: Dockerfile-dev + ports: + - "8000:5000" + links: + - postgres:dbserver + volumes: + - ./app:/home/foodlist/app + + postgres: + restart: always + image: postgres:latest + environment: + POSTGRES_PASSWORD: Rand0MPazsw0rd + POSTGRES_DB: foodlist + ports: + - "5432:5432" \ No newline at end of file