Skip to content

Commit

Permalink
Create docker-compose-ayala.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ayala-orca authored Sep 12, 2024
1 parent e92712a commit 4a959d0
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions docker-compose-ayala.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 4a959d0

Please sign in to comment.