Skip to content

Latest commit

 

History

History
24 lines (24 loc) · 718 Bytes

File metadata and controls

24 lines (24 loc) · 718 Bytes

Usage

Adding certificate and key

Put your server's certificate and key into a directory certs

$ mkdir certs
$ cp /path/to/mydomain.com.crt ./certs
$ cp /path/to/mydomain.com.key ./certs

Configure

Create .env file with your images/host

.env

BACKEND_IMAGE=tobiaslocker/simple-dockerized-flask-backend:v0.1
BACKEND_VIRTUAL_HOST=backend.mydomain.com
BACKEND_VIRTUAL_PORT=8080
FRONTEND_IMAGE=tobiaslocker/simple-dockerized-react-frontend:v0.1
FRONTEND_VIRTUAL_HOST=mydomain.com
POSTGRES_USER=test
POSTGRES_PASSWORD=password
POSTGRES_HOST=postgres
POSTGRES_PORT=5432
POSTGRES_DB=example

⚠️ You need to set up backend.mydomain.com to point to the same IP as mydomain.com