diff --git a/docker-compose-ayala.yml b/docker-compose-ayala.yml new file mode 100644 index 0000000..3d39f83 --- /dev/null +++ b/docker-compose-ayala.yml @@ -0,0 +1,29 @@ +version: "3.3" + +services: + db: + image: postgres + volumes: + - ./data/db:/var/lib/postgresql/data + environment: + - POSTGRES_DB=postgres + - POSTGRES_USER=postgres + - POSTGRES_PASSWORD=postgres + web: + build: . + image: pygoat/pygoat + command: gunicorn --bind 0.0.0.0:8000 --workers 6 pygoat.wsgi + ports: + - "8000:8000" + volumes: + - .:/app + depends_on: + - migration + - db + migration: + image: pygoat/pygoat + command: python pygoat/manage.py migrate --noinput + volumes: + - .:/app + depends_on: + - db