From 83ea3e1455ac09001733dd6221e8050e609cc504 Mon Sep 17 00:00:00 2001 From: ManUtopiK Date: Sat, 29 Oct 2022 20:29:48 +0200 Subject: [PATCH] feat: config ports in .env --- .env.example | 8 +++++++- composes/hasura/hasura.yml | 3 ++- composes/listmonk/listmonk.yml | 2 +- composes/n8n/n8n.yml | 2 +- composes/pgadmin/pgadmin.yml | 2 +- composes/umami/umami.yml | 2 +- 6 files changed, 13 insertions(+), 6 deletions(-) diff --git a/.env.example b/.env.example index 5aa2255..b0cf8fc 100644 --- a/.env.example +++ b/.env.example @@ -35,6 +35,7 @@ POSTGRES_PASSWORD=rootpassword # pgadmin ###### +# PGADMIN_PORT= # default to 80 # PGADMIN_DEFAULT_MAIL= # default to ADMIN_MAIL # PGADMIN_DEFAULT_PASSWORD= # default to ADMIN_PASSWORD @@ -43,6 +44,8 @@ POSTGRES_PASSWORD=rootpassword # hasura ###### +# HASURA_PORT= # default to 8080 +# HASURA_CONSOLE_PORT= # default to 9695 # HASURA_GRAPHQL_ADMIN_SECRET= # default to ADMIN_PASSWORD ###### @@ -50,6 +53,7 @@ POSTGRES_PASSWORD=rootpassword ###### N8N_DB=n8n +# N8N_PORT= # default to 8080 # N8N_BASIC_AUTH_USER= # default to ADMIN_USER # N8N_BASIC_AUTH_PASSWORD= # default to ADMIN_PASSWORD # N8N_WEBHOOK_URL= @@ -59,9 +63,11 @@ N8N_DB=n8n ###### UMAMI_DB=umami +# UMAMI_PORT= # default to 3000 ###### # listmonk ###### -LISTMONK_DB=listmonk \ No newline at end of file +LISTMONK_DB=listmonk +# LISTMONK_PORT= # default to 9000 \ No newline at end of file diff --git a/composes/hasura/hasura.yml b/composes/hasura/hasura.yml index 6030c6b..5b56e3d 100644 --- a/composes/hasura/hasura.yml +++ b/composes/hasura/hasura.yml @@ -4,7 +4,8 @@ services: image: hasura/graphql-engine:v2.13.0.cli-migrations-v3 restart: always ports: - - 8080:8080 + - ${HASURA_PORT:-8080}:8080 + - ${HASURA_CONSOLE_PORT:-9695}:8080 depends_on: postgres: condition: service_healthy diff --git a/composes/listmonk/listmonk.yml b/composes/listmonk/listmonk.yml index 834d6fc..c940798 100644 --- a/composes/listmonk/listmonk.yml +++ b/composes/listmonk/listmonk.yml @@ -4,7 +4,7 @@ services: image: listmonk/listmonk:latest restart: always ports: - - 9000:9000 + - ${LISTMONK_PORT:-9000}:9000 depends_on: postgres: condition: service_healthy diff --git a/composes/n8n/n8n.yml b/composes/n8n/n8n.yml index 0a5e138..dcc9b67 100644 --- a/composes/n8n/n8n.yml +++ b/composes/n8n/n8n.yml @@ -39,7 +39,7 @@ services: container_name: $APP_NAME-n8n command: /bin/sh -c "n8n start --tunnel" ports: - - 5678:5678 + - ${N8N_PORT:-5678}:5678 n8n-worker: <<: *shared diff --git a/composes/pgadmin/pgadmin.yml b/composes/pgadmin/pgadmin.yml index 68e9746..434e568 100644 --- a/composes/pgadmin/pgadmin.yml +++ b/composes/pgadmin/pgadmin.yml @@ -6,7 +6,7 @@ services: - PGADMIN_DEFAULT_EMAIL=${PGADMIN_DEFAULT_EMAIL:-$ADMIN_MAIL} - PGADMIN_DEFAULT_PASSWORD=${PGADMIN_DEFAULT_PASSWORD:-$ADMIN_PASSWORD} ports: - - 5050:80 + - ${PGADMIN_PORT:-80}:80 restart: always depends_on: postgres: diff --git a/composes/umami/umami.yml b/composes/umami/umami.yml index 24f87fb..c236ba9 100644 --- a/composes/umami/umami.yml +++ b/composes/umami/umami.yml @@ -2,7 +2,7 @@ services: umami: image: ghcr.io/umami-software/umami:postgresql-latest ports: - - 3333:3000 + - ${UMAMI_PORT:-3000}:3000 environment: DATABASE_URL: postgres://${POSTGRES_NON_ROOT_USER:-$ADMIN_USER}:${POSTGRES_NON_ROOT_PASSWORD:-$POSTGRES_PASSWORD}@postgres:5432/${UMAMI_DB:-umami} DATABASE_TYPE: postgresql