Skip to content

Commit e5e637e

Browse files
authored
fix: always binds predictable ports inside the container, and uses dynamic ports for the host (#569)
1 parent 59938ad commit e5e637e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services:
55
image: ghcr.io/${GITHUB_REPOSITORY:-raghavyuva/nixopus}-api:latest
66
container_name: nixopus-api
77
ports:
8-
- "${API_PORT:-8443}:${API_PORT:-8443}"
8+
- "${API_PORT:-8443}:8443"
99
restart: unless-stopped
1010
env_file:
1111
- ${NIXOPUS_HOME:-/etc/nixopus}/source/api/.env
@@ -52,7 +52,7 @@ services:
5252
args:
5353
- NEXT_PUBLIC_PORT=${NEXT_PUBLIC_PORT}
5454
ports:
55-
- "${NEXT_PUBLIC_PORT:-7443}:${NEXT_PUBLIC_PORT:-7443}"
55+
- "${NEXT_PUBLIC_PORT:-7443}:7443"
5656
restart: unless-stopped
5757
env_file:
5858
- ${NIXOPUS_HOME:-/etc/nixopus}/source/view/.env

0 commit comments

Comments
 (0)