Skip to content

Commit 2fb26b8

Browse files
author
Kerkesni
committed
only expose needed ports from the e2e test containers
Issue: BB-496
1 parent b3637fc commit 2fb26b8

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/dockerfiles/e2e/docker-compose.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ services:
33
profiles: ['s3c']
44
build:
55
context: ../sproxyd
6-
ports:
7-
- 8181
86
user: 0:0
97
privileged: true
108
healthcheck:
@@ -16,9 +14,10 @@ services:
1614
metadata:
1715
profiles: ['s3c']
1816
image: ${METADATA_IMAGE}
19-
network_mode: host
2017
depends_on:
2118
- sproxyd
19+
ports:
20+
- 9000:9000
2221
environment:
2322
SPROXYD: sproxyd:8181
2423
volumes:
@@ -35,11 +34,12 @@ services:
3534
context: ../cloudserver
3635
depends_on:
3736
- metadata
37+
ports:
38+
- 8000:8000
3839
environment:
3940
S3DATA: file
4041
S3METADATA: scality
4142
S3VAULT: mem
42-
BUCKETD_BOOTSTRAP: localhost:9000
4343
S3_CONFIG_FILE: /conf/config.json
4444
REMOTE_MANAGEMENT_DISABLE: 1
4545
command: yarn start
@@ -52,11 +52,14 @@ services:
5252
redis:
5353
profiles: ['s3c']
5454
image: ${REDIS_IMAGE}
55-
network_mode: host
55+
ports:
56+
- 6379:6379
5657
kafka:
5758
profiles: ['s3c']
5859
image: ${KAFKA_IMAGE}
59-
network_mode: host
60+
ports:
61+
- 9092:9092
62+
- 2181:2181
6063
environment:
6164
ADVERTISED_HOST: "localhost"
6265
ADVERTISED_PORT: 9092

0 commit comments

Comments
 (0)