From 4a959d060409789cc2bc34cb991be72f1ea178b9 Mon Sep 17 00:00:00 2001 From: ayala-orca <93713792+ayala-orca@users.noreply.github.com> Date: Thu, 12 Sep 2024 11:04:26 +0300 Subject: [PATCH] Create docker-compose-ayala.yml --- docker-compose-ayala.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 docker-compose-ayala.yml 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