Skip to content

Commit 53ed7e8

Browse files
committed
make docker setup more friendly for dev
1 parent 92de368 commit 53ed7e8

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

devtools/deployment/.env.example

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ DATABASE_URL=postgresql://django_traefik:django_traefik@db:5432/django_traefik
55
HOST_DOMAIN=localhost
66
POSTGRES_USER=django_traefik
77
POSTGRES_PASSWORD=django_traefik
8-
POSTGRES_DB=django_traefik
8+
POSTGRES_DB=django_traefik
9+
USER_ID=1000
10+
GROUP_ID=1000

docker-compose-dev.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@ version: '3'
22

33
services:
44
web:
5-
build: .
5+
build:
6+
context: .
7+
args:
8+
- USER_ID=${USER_ID:?err}
9+
- GROUP_ID=${GROUP_ID:?err}
10+
dockerfile: Dockerfile
611
command: bash -c "while !</dev/tcp/db/5432; do sleep 1; done; cd argos && gunicorn argos.wsgi:application --bind 0.0.0.0:8000"
712
container_name: argos
813
volumes:

0 commit comments

Comments
 (0)