use expose instead of publish

This commit is contained in:
simon 2021-10-26 16:23:41 +07:00
parent 3526d62540
commit 50396a666d

View File

@ -24,8 +24,8 @@ services:
image: redislabs/rejson:latest image: redislabs/rejson:latest
container_name: archivist-redis container_name: archivist-redis
restart: always restart: always
ports: expose:
- 6379:6379 - "6379"
volumes: volumes:
- ./volumes/tubearchivist/redis:/data - ./volumes/tubearchivist/redis:/data
depends_on: depends_on:
@ -43,5 +43,5 @@ services:
hard: -1 hard: -1
volumes: volumes:
- ./volumes/tubearchivist/es:/usr/share/elasticsearch/data - ./volumes/tubearchivist/es:/usr/share/elasticsearch/data
ports: expose:
- 9200:9200 - "9200"