我有一个应用angular-moviemasher,它需要docker运行配置。我已经成功配置了它,并在http上运行,但是我无法使其在https上运行,我确定这是docker问题。我有docker。版本2的composer.yml文件,它不使用秘密作为参数来插入sslcerts。如何在https环境中运行它
version: '2'
services:
angular_moviemasher:
image: moviemasher/angular-moviemasher
container_name: angular_moviemasher
build:
context: ../../../
dockerfile: ./Dockerfile
ports:
- "8080:80"
- "9000:443"
labels:
com.docker.lb.hosts: video.un-realdocs.com
com.docker.lb.network: angular_moviemasher-network
com.docker.lb.port: "8080"
com.docker.lb.ssl_cert: angular-moviemasher_video.un-realdocs.com.cert
com.docker.lb.ssl_key: angular-moviemasher_video.un-realdocs.com.key
volumes:
- "../../../log:/tmp/moviemasher/log/"
- "../../../src:/var/www/html/angular-moviemasher/src"
- "../moviemasher.ini:/var/www/config/moviemasher.ini"
- "../../../app:/var/www/html/angular-moviemasher/app"
- "../../../dist:/var/www/html/angular-moviemasher/dist"
- "../../../node_modules:/var/www/html/angular-moviemasher/node_modules"
moviemasher_rb:
image: moviemasher/moviemasher.rb
container_name: angular_moviemasher_rb
build:
context: ../../../../moviemasher.rb/
dockerfile: ./Dockerfile
volumes_from:
- angular_moviemasher
volumes:
- "../../../tmp/error:/tmp/moviemasher/error"
- "../../../tmp/render:/tmp/moviemasher/render"
- "../../../../moviemasher.rb/:/mnt/moviemasher.rb"
command: process_loop -v debug --render_save=1
tty: true
这可能无济于事,但是是否有理由让您通过标签而不是环境变量传递这样的变量?
您的证书也打包在Docker容器中还是通过卷传递?