Skip to content

Commit

Permalink
make docker setup more friendly for dev
Browse files Browse the repository at this point in the history
  • Loading branch information
hmacdope committed Jun 6, 2024
1 parent 92de368 commit 53ed7e8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion devtools/deployment/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ DATABASE_URL=postgresql://django_traefik:django_traefik@db:5432/django_traefik
HOST_DOMAIN=localhost
POSTGRES_USER=django_traefik
POSTGRES_PASSWORD=django_traefik
POSTGRES_DB=django_traefik
POSTGRES_DB=django_traefik
USER_ID=1000
GROUP_ID=1000
7 changes: 6 additions & 1 deletion docker-compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ version: '3'

services:
web:
build: .
build:
context: .
args:
- USER_ID=${USER_ID:?err}
- GROUP_ID=${GROUP_ID:?err}
dockerfile: Dockerfile
command: bash -c "while !</dev/tcp/db/5432; do sleep 1; done; cd argos && gunicorn argos.wsgi:application --bind 0.0.0.0:8000"
container_name: argos
volumes:
Expand Down

0 comments on commit 53ed7e8

Please sign in to comment.