I’m writing a rockon for Tiny-Tiny-RSS (https://tt-rss.org/gitlab/fox/tt-rss/wikis/home) consisting of a clue/ttrss and a postgres container. I trying to link them using the “container_links” object which is undocumented but used in the ownlcoud and rocket chat rockons. The rockon installs fine but does not start. When i start in manually via ssh using “docker start -i ttrss-test” i get the following message: Error: The env DB_PORT does not exist. Make sure to run with “–link mypostgresinstance:DB”.
When i instead of “container_links” use the “opts” object inside the ttrss container with [ “–link” “ttrss_postgres-test:db” ] everything works fine.
Heres my rockon:
{
"TinyTinyRSS Test": {
"container_links": {
"ttrss-test": [
{
"name": "db",
"source_container": "ttrss_postgres-test"
}
]
},
"containers": {
"ttrss-test": {
"image": "clue/ttrss",
"tag": "latest",
"launch_order": 2,
"ports": {
"80": {
"description": "Tiny-Tiny-RSS WebUI port. Suggested default: 8888",
"host_default": 8286,
"label": "WebUI port",
"protocol": "tcp",
"ui": true
}
}
},
"ttrss_postgres-test": {
"image": "postgres",
"tag": "latest",
"launch_order": 1,
"volumes": {
"/var/lib/posgresql/data/pgdata": {
"description": "Choose a Share for the PosgreSQL database of Tiny-Tiny-Rss.",
"label": "Database Storage",
"min_size": 1073741824
}
},
"opts":[
["-e","PGDATA=/var/lib/posgresql/data/pgdata"],
["-e","POSTGRES_USER=ttrss"]
]
}
},
"version": "latest stable",
"description": "Web-based news feed reader and aggregator",
"icon": "https://tt-rss.org/gitlab/uploads/project/avatar/1/ic_launcher.png",
"more_info": "<p>The default user credentials are admin/password. Make sure to change them after your first login.</p>",
"ui": {
"https": true,
"slug": ""
},
"website": "https://tt-rss.org/"
}
}