Remove hostname entries from docker-compose.yml for services
This commit is contained in:
parent
d03456bd6a
commit
af8c1260d5
@ -1,7 +1,6 @@
|
|||||||
services:
|
services:
|
||||||
api1:
|
api1:
|
||||||
container_name: api1
|
container_name: api1
|
||||||
hostname: api1
|
|
||||||
image: payment3:latest
|
image: payment3:latest
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
@ -18,7 +17,6 @@ services:
|
|||||||
|
|
||||||
api2:
|
api2:
|
||||||
container_name: api2
|
container_name: api2
|
||||||
hostname: api2
|
|
||||||
image: payment3:latest
|
image: payment3:latest
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
- redis
|
||||||
@ -36,7 +34,6 @@ services:
|
|||||||
nginx:
|
nginx:
|
||||||
image: nginx:latest
|
image: nginx:latest
|
||||||
container_name: nginx
|
container_name: nginx
|
||||||
hostname: nginx
|
|
||||||
ports:
|
ports:
|
||||||
- "9999:9999"
|
- "9999:9999"
|
||||||
volumes:
|
volumes:
|
||||||
@ -54,7 +51,6 @@ services:
|
|||||||
|
|
||||||
redis:
|
redis:
|
||||||
image: redis:7.2-alpine
|
image: redis:7.2-alpine
|
||||||
hostname: redis
|
|
||||||
platform: linux/amd64
|
platform: linux/amd64
|
||||||
ports:
|
ports:
|
||||||
- "6379:6379"
|
- "6379:6379"
|
||||||
@ -71,7 +67,6 @@ services:
|
|||||||
database:
|
database:
|
||||||
container_name: database
|
container_name: database
|
||||||
image: postgres:alpine
|
image: postgres:alpine
|
||||||
hostname: database
|
|
||||||
platform: linux/amd64
|
platform: linux/amd64
|
||||||
ports:
|
ports:
|
||||||
- "5432:5432"
|
- "5432:5432"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user