here is a example docker-compose.yml file you can use
services:
backend:
image: ghcr.io/mallo321123/openparcel:backend-release
container_name: OpenParcel_backend
ports:
- "8080:8080"
environment:
- MYSQL_HOST=mysql
- MYSQL_USER=root
- MYSQL_PASSWORD=a-nice-long-random-phrase
- SECRET_KEY=a-nice-long-random-phrase
depends_on:
- mysql
- redis
networks:
- OpenParcel
frontend:
image: ghcr.io/mallo321123/openparcel:frontend-release
container_name: OpenParcel_frontend
depends_on:
- backend
ports:
- "3000:3000"
networks:
- OpenParcel
mysql:
image: mysql:8.0
container_name: mysql
environment:
MYSQL_ROOT_PASSWORD: a-nice-long-random-phrase
MYSQL_DATABASE: OpenParcel
command: --default-authentication-plugin=mysql_native_password
ports:
- "3306:3306"
networks:
- OpenParcel
redis:
container_name: redis
image: redis:alpine
ports:
- "6379:6379"
networks:
- OpenParcel
networks:
OpenParcel:
default: mysql
your mysql server adress
default: 3306
your mysql port
default: root
your mysql user
your mysql password
default: OpenParcel
your mysql database
default: 8080
the port your backend runs on. Change this only if you know what you do.
all api requests are proxied through the frontend nginx server and directed to the default port
the secret key used to generate Login tokens, do not share
use a nice long random phrase
default: redis
your redis host adress
default: 6379
your redis port
default: false
when set to true, a flask server with advanced debugging will start
when you want to recieve Server Logs, insert this into your volumes options:
- ./logs:/var/log/OpenParcel
replace ./logs
with your logging directory