Commit 77dd64ab authored by Cédric Crettaz's avatar Cédric Crettaz 🖥

Add Docker compose file for watering app.

parent 9df4071e
version: "3.3"
services:
db:
image: postgres
networks:
- naiades-platform-poc_default
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
migrate:
image: eanagnostopoulou/naiades-watering-web
networks:
- naiades-platform-poc_default
command: python manage.py migrate --noinput
environment:
- POSTGRES_HOST=db
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
depends_on:
- db
web:
build: .
image: eanagnostopoulou/naiades-watering-web
networks:
- naiades-platform-poc_default
command: python manage.py runserver 0.0.0.0:80
#ports:
# - "${NAIADES_WATERING_PORT:-5001}:8000"
expose:
- "80"
environment:
- POSTGRES_HOST=db
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
depends_on:
- db
- migrate
networks:
naiades-platform-poc_default:
external: true
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment