Quote ports in docker-compose

Per sepcification in compose-file v3 ports are in quotes.

https://docs.docker.com/compose/compose-file/compose-file-v3/
This commit is contained in:
Jascha Urbach 2022-11-16 12:38:49 +01:00
parent 1a8580cdbc
commit cb187c880e
No known key found for this signature in database
GPG key ID: A43A844B114F9B08

View file

@ -5,7 +5,7 @@ services:
image: nginx:latest image: nginx:latest
restart: unless-stopped restart: unless-stopped
ports: ports:
- 1333:80 - "1333:80"
depends_on: depends_on:
- web - web
networks: networks:
@ -36,7 +36,7 @@ services:
networks: networks:
- main - main
ports: ports:
- 8000 - "8000"
redis_activity: redis_activity:
image: redis image: redis
command: redis-server --requirepass ${REDIS_ACTIVITY_PASSWORD} --appendonly yes --port ${REDIS_ACTIVITY_PORT} command: redis-server --requirepass ${REDIS_ACTIVITY_PASSWORD} --appendonly yes --port ${REDIS_ACTIVITY_PORT}