Skip to content

Commit d90714f

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

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

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

Lines changed: 8 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,7 +14,6 @@ services:
1614
metadata:
1715
profiles: ['s3c']
1816
image: ${METADATA_IMAGE}
19-
network_mode: host
2017
depends_on:
2118
- sproxyd
2219
environment:
@@ -35,11 +32,13 @@ services:
3532
context: ../cloudserver
3633
depends_on:
3734
- metadata
35+
ports:
36+
- 8000:8000
3837
environment:
3938
S3DATA: file
4039
S3METADATA: scality
4140
S3VAULT: mem
42-
BUCKETD_BOOTSTRAP: localhost:9000
41+
BUCKETD_BOOTSTRAP: metadata:9000
4342
S3_CONFIG_FILE: /conf/config.json
4443
REMOTE_MANAGEMENT_DISABLE: 1
4544
command: yarn start
@@ -52,11 +51,14 @@ services:
5251
redis:
5352
profiles: ['s3c']
5453
image: ${REDIS_IMAGE}
55-
network_mode: host
54+
ports:
55+
- 6379:6379
5656
kafka:
5757
profiles: ['s3c']
5858
image: ${KAFKA_IMAGE}
59-
network_mode: host
59+
ports:
60+
- 9092:9092
61+
- 2181:2181
6062
environment:
6163
ADVERTISED_HOST: "localhost"
6264
ADVERTISED_PORT: 9092

0 commit comments

Comments
 (0)