के लिए docker-compose.yml से dockerrun.aws.json का अनुवाद कैसे करें Iपर निर्देशों का पालन कर रहा हूं ताकि मूल डॉकराइज्ड django ऐप जा सके। मैं इसे बिना किसी समस्या के स्थानीय रूप से चलाने में सक्षम हूं लेकिन मुझे लोचदार बीनस्टॉक का उपयोग करके एडब्ल्यूएस पर तैनात करने में परेशानी हो रही है। here पढ़ने के बाद, मुझे लगा कि मुझे काम करने के लिए डॉकरुन.ओ.एस.एस.एस. में डॉकर-कंपोज़.इम्एल का अनुवाद करने की आवश्यकता है।Django
मूल डोकर-compose.yml
version: '2'
services:
db:
image: postgres
web:
build: .
command: python manage.py runserver 0.0.0.0:8000
volumes:
- .:/code
ports:
- "8000:8000"
depends_on:
- db
है और यहाँ मैं अब तक
{
"AWSEBDockerrunVersion": 2,
"volumes": [
{
"name": "db"
},
{
"name": "web"
}
],
"containerDefinitions": [
{
"name": "db",
"image": "postgres",
"essential": true,
"memory": 256,
"mountPoints": [
{
"sourceVolume": "db"
"containerPath": "/var/app/current/db"
}
]
},
{
"name": "web",
"image": "web",
"essential": true,
"memory": 256,
"mountPoints": [
{
"sourceVolume": "web"
"containerPath": "/var/app/current/web"
}
],
"portMappings": [
{
"hostPort": 8000,
"containerPort": 8000
}
],
"links": [
"db"
],
"command": "python manage.py runserver 0.0.0.0:8000"
}
]
}
क्या अनुवाद, लेकिन यह काम नहीं कर रहा है। मैं क्या गलत कर रहा हूं?
मैंने 1 डॉकर बिल्ड 'और' डॉकर पुश 'का उपयोग hub.docker.com को 1 प्राप्त करने के लिए किया था), मुझे लगता है कि आपको 2 के लिए तर्कों के बीच कॉमा की आवश्यकता है)। लेकिन यह अभी भी काम नहीं कर रहा है ... क्या आप Dockerrun.aws.json साझा कर सकते हैं जो आपके लिए काम करता है और वह छवि जो आपके लिए काम करती है? – user3667089