Note: The default ITS GitLab runner is a shared resource and is subject to slowdowns during heavy usage.
You can run your own GitLab runner that is dedicated just to your group if you need to avoid processing delays.

Commit bc5bf9b2 authored by Jon Yu's avatar Jon Yu
Browse files

Make db, app ports configurable

parent aa3196f1
Pipeline #17617 passed with stage
in 14 seconds
......@@ -8,11 +8,11 @@ services:
ENVIRONMENT: DEVELOPMENT
env_file: ./src/.env
ports:
- 127.0.0.1:8000:8000
- 127.0.0.1:${APP_PORT:-8000}:8000
volumes:
- ./src:/usr/src/app
entrypoint: ./docker-entrypoint.sh
command: "python3 manage.py runserver 0.0.0.0:8000 --nostatic"
command: "python3 manage.py runserver 0.0.0.0:${APP_PORT:-8000} --nostatic"
depends_on:
- db
db:
......@@ -20,7 +20,7 @@ services:
env_file:
- ./db/.env
ports:
- 127.0.0.1:5432:5432
- 127.0.0.1:${DB_PORT:-5432}:5432
volumes:
- postgres-data:/var/lib/pgsql/data
volumes:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment