-
-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Description
Looks like extends is not working in container-compose but it is working using Docker desktop
container-compose up
Error: dataCorrupted(Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "services", intValue: nil),
_DictionaryCodingKey(stringValue: "mongo", intValue: nil), CodingKeys(stringValue: "image", intValue: nil)],
debugDescription: "Service must have either \'image\' or \'build\' specified.", underlyingError: nil))
cat docker-compose.yml
version: '3.1'
services:
mongo:
extends:
file: ./dev/docker-compose/docker-mongo-replica-set/docker-compose.yml
service: mongo-replica
firebase-emulator:
extends:
file: ./dev/docker-compose/firebase-emulator/docker-compose.yml
service: firebase-emulator
container_name: firebase-emulator
ports:
- "4000:4000" #Emulator UI
- "9099:9099" #Firebase Auth
- "9199:9199" #Firebase Cloud Storage
- "9000:9000" #Firebase Realtime database
volumes:
- ./dev/docker-compose/firebase-emulator/data:/firebase/data:rw
- ./firebase.json:/firebase/firebase.json:ro
firebase-emulator-itests: #this is only used for itests, to make sure dev-data is not wiped on the normal fb-emulator. Make sure to adjust your .env.testing-file accordingly
extends:
file: ./dev/docker-compose/firebase-emulator/docker-compose.yml
service: firebase-emulator
container_name: firebase-emulator-itests
ports: #the host-ports have a leading `1` compared to the normal ports, make sure to use that port instead of the normal one in your .env.testing-file
- "14000:14000" #Emulator UI
- "19099:19099" #Firebase Auth
- "19199:19199" #Firebase Cloud Storage
- "19000:19000" #Firebase Realtime database
volumes:
# Mounting a different firebase.json-config into the container to make it run on different ports
- ${PWD}/dev/docker-compose/firebase-emulator/firebase_itest.json:/firebase/firebase.json
networks:
ev:
name: ev
cat ./dev/docker-compose/docker-mongo-replica-set/docker-compose.yml
version: '3.8'
services:
mongo-replica:
build: .
container_name: mongo-replica
ports:
- "27017:27017"
- "27018:27018"
- "27019:27019"
volumes:
- ./data/mongo1:/data/mongo1
- ./data/mongo2:/data/mongo2
- ./data/mongo3:/data/mongo3
container-compose up
Error: dataCorrupted(Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "services", intValue: nil), _DictionaryCodingKey(stringValue: "mongo", intValue: nil), CodingKeys(stringValue: "image", intValue: nil)], debugDescription: "Service must have either \'image\' or \'build\' specified.", underlyingError: nil))
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed