GitHunter0/100_prisoners_problem_app
1
1 2version: '3'3services:4 nginx-service:5 image: nginx:latest6 container_name: nginx_cont7 restart: unless-stopped8 ports:9 - 80:8010 - 443:44311 volumes:12 # NOTE: ${HOME}/ and ~/ do not work with docker-compose!13 # https://github.com/docker/docker.github.io/pull/853814 # - /home/user_name/... -> /home/ubuntu/15 - ./nginx_streamlit.conf:/etc/nginx/nginx.conf16 # BUG: you might have to remove the final '/' for it to work.17 - /home/ubuntu/ssl/:/etc/nginx/ssl/ 18 #- /home/ubuntu/ssl_hagenfin.pem:/etc/nginx/ssl/ssl_hagenfin.pem19 #- /home/ubuntu/ssl_hagenfin.key:/etc/nginx/ssl/ssl_hagenfin.key 20 streamlit-service:21 image: hagenfin/projects:100_prisoners_problem_streamlit_app22 container_name: streamlit_cont # change name if it conflicts23 # restart: unless-stopped24 ports:25 - 8501 # Not linked to another port, only nginx will have access26 volumes:27 - ./:/app/ 28 # https://stackoverflow.com/questions/30063907/using-docker-compose-how-to-execute-multiple-commands29 command: streamlit run Home.py30 31 