Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
My domain is: https://toxiverse.com
I ran this command:
First, I ran sudo certbot certonly --standalone -d www.toxiverse.com -d toxiverse.com and successfully get my SSL certificates;
And then $sudo -s scp /etc/letsencrypt/live/toxiverse.com/privkey.pem /root/ssl
$ sudo -s scp /etc/letsencrypt/live/toxiverse.com/fullchain.pem /root/ssl
$ sudo -s scp /etc/letsencrypt/live/toxiverse.com/cert.pem /root/ssl
$ sudo -s scp /etc/letsencrypt/live/toxiverse.com/chain.pem /root/ssl
Which copy the ssl certificates to the folder /root/ssl/
And then I copy local files to DigitalOcean and compose the containers: sudo docker compose -f docker-compose-do.yml up -d --build --force-recreate
The containers started successfully, but when I try to wget the website,it produced this output: Connecting to toxiverse.com (toxiverse.com)|192.241.131.84|:443... connected.
OpenSSL: error:0A00010B:SSL routines::wrong version number
Unable to establish SSL connection.
docker-compose.yml is:
version: '2'
services:
redis:
image: redis
volumes:
- ./redis:/usr/local/etc/redis
toxpro:
build: .
env_file:
- docker-environment.env
ports:
- "443:5000"
image: toxpro
volumes:
- ./instance/:/home/toxpro/instance
- ./data/:/home/toxpro/data
- ./root/ssl/fullchain.pem:/home/toxpro/fullchain.pem
- ./root/ssl/privkey.pem:/home/toxpro/privkey.pem
entrypoint: ["./boot.sh"]
stdin_open: true
tty: true
worker:
build: .
env_file:
- docker-environment.env
depends_on:
- redis
- toxpro
entrypoint: ["./boot_worker.sh"]
volumes:
- ./instance/:/home/toxpro/instance
- ./data/:/home/toxpro/data
- ./root/ssl/fullchain.pem:/home/toxpro/fullchain.pem
- ./root/ssl/privkey.pem:/home/toxpro/privkey.pem
volumes:
instance_vol:
And using dockerfile:
FROM python:3.8
RUN useradd toxpro
WORKDIR /home/toxpro
COPY requirements.txt requirements.txt
RUN python -m venv venv
RUN venv/bin/pip install -r requirements.txt
netcat is a program
necessary for troubleshooting
the networking
RUN apt-get update && apt-get install -y netcat-traditional
COPY app app
COPY ssl ssl
RUN pip install pyopenssl
RUN mkdir logs
RUN mkdir data
RUN mkdir instance # this is necessary for digital ocean
COPY boot.sh ./
RUN chmod +x boot.sh
COPY boot_worker.sh ./
RUN chmod +x boot_worker.sh
COPY boot_dashboard.sh ./
RUN chmod +x boot_dashboard.sh
RUN apt-get install libxrender1
ENV FLASK_APP app.py
RUN chown -R toxpro:toxpro ./
USER toxpro
EXPOSE 5000
My web server is (include version): gunicorn==20.1.0, Flask-based application
The operating system my web server runs on is (include version): Ubuntu 22.04.1 LTS
My hosting provider, if applicable, is: DigitalOcean
I can login to a root shell on my machine (yes or no, or I don't know): I don't know
I'm using a control panel to manage my site (no, or provide the name and version of the control panel):no
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot): 2.8.0