Skip to content

Commit 475d97b

Browse files
authored
docker-compose: Updates based on deploy issues (#1773)
Some ports better to make configurable from ENV. Staging port is actually 9000, not 8000 (i forgot that), so taking opportunity also hiding staging behind proxy. Production right now are proxied over local nginx (easier certbot), so we need to make ports configurable too. Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
1 parent 1fe4601 commit 475d97b

2 files changed

Lines changed: 18 additions & 18 deletions

File tree

docker-compose-next.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ services:
5959
- private
6060
- public
6161
ports:
62-
- 2001:2001
62+
- ${EXTERNAL_PROM_METRICS_PORT:-2001}:${PROM_METRICS_PORT:-8002}
6363
depends_on:
6464
- redis
6565

docker-compose.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -120,20 +120,20 @@ services:
120120
volumes:
121121
- static-data:/data/static
122122

123-
# proxy:
124-
# build: ./proxy
125-
# image: ${IMAGE_REGISTRY:-ghcr.io}/${IMAGE_REPOSITORY:-local}/dashboard-proxy:${IMAGE_TAG:-latest}
126-
# restart: always
127-
# depends_on:
128-
# - backend
129-
# - dashboard
130-
# networks:
131-
# - public
132-
# volumes:
133-
# - static-data:/data/static
134-
# - /etc/letsencrypt/live/staging.dashboard.kernelci.org/fullchain.pem:/etc/nginx/ssl/fullchain.pem
135-
# - /etc/letsencrypt/live/staging.dashboard.kernelci.org/privkey.pem:/etc/nginx/ssl/privkey.pem
136-
# ports:
137-
# - 9000:9000
138-
# env_file:
139-
# - .env
123+
proxy:
124+
build: ./proxy
125+
image: ${IMAGE_REGISTRY:-ghcr.io}/${IMAGE_REPOSITORY:-local}/dashboard-proxy:${IMAGE_TAG:-latest}
126+
restart: always
127+
depends_on:
128+
- backend
129+
- dashboard
130+
networks:
131+
- public
132+
volumes:
133+
- static-data:/data/static
134+
- /etc/letsencrypt/live/staging.dashboard.kernelci.org/fullchain.pem:/etc/nginx/ssl/fullchain.pem
135+
- /etc/letsencrypt/live/staging.dashboard.kernelci.org/privkey.pem:/etc/nginx/ssl/privkey.pem
136+
ports:
137+
- ${STAGING_EXTERNAL_HTTP_PORT:-9000}:80
138+
env_file:
139+
- .env

0 commit comments

Comments
 (0)