port mapping

This commit is contained in:
aynic.os 2023-11-24 04:07:45 +00:00
parent 174f620460
commit dd2046f587
4 changed files with 18 additions and 12 deletions

View File

@ -2,16 +2,7 @@ version: '3.6'
services:
astroport:
build:
args:
- DOCKER_REPOSITORY=${DOCKER_REPOSITORY}
- GID=${HOST_GID}
- UID=${HOST_UID}
container_name: ${COMPOSE_PROJECT_NAME}-astroport
domainname: ${DOMAINNAME:-localhost}
hostname: ${HOSTNAME:-astroport}
image: ${DOCKER_REPOSITORY}/astroport:${DOCKER_IMAGE_TAG}
labels:
- SERVICE_1234_CHECK_HTTP=/test
- SERVICE_1234_NAME=${COMPOSE_SERVICE_NAME}-astroport-1234
- SERVICE_1234_TAGS=${HOST_ASTROPORT_SERVICE_1234_TAGS:-}
- SERVICE_1234_CHECK_HTTP=/
- SERVICE_1234_NAME=${COMPOSE_SERVICE_NAME:-localhost}-astroport-1234
- SERVICE_1234_TAGS=${HOST_ASTROPORT_SERVICE_1234_TAGS:-urlprefix-astroport.localhost/}

View File

@ -0,0 +1,7 @@
version: '3.6'
services:
astroport:
ports:
- 1234:1234
- 12345:12345

View File

@ -3,6 +3,8 @@ version: '3.8'
services:
astroport:
build:
args:
- DOCKER_REPOSITORY=${DOCKER_REPOSITORY}
dockerfile: docker/astroport/Dockerfile.vdi
cap_add:
- IPC_LOCK # ecryptfs

View File

@ -5,9 +5,15 @@ services:
build:
args:
- DOCKER_BUILD_DIR=docker/astroport
- GID=${HOST_GID:-123}
- IPFS_VERSION=${IPFS_VERSION:-0.24.0}
- UID=${HOST_UID:-123}
context: ../
dockerfile: docker/astroport/Dockerfile
container_name: ${COMPOSE_PROJECT_NAME:-localhost}-astroport
domainname: ${DOMAINNAME:-localhost}
hostname: ${HOSTNAME:-astroport}
image: ${DOCKER_REPOSITORY:-localhost}/astroport:${DOCKER_IMAGE_TAG:-latest}
restart: unless-stopped
ports:
- 1234