Open Dima-Kal opened 10 months ago
Hey, can you please send me your .env and docker-compose file? This has to do with the App Theme Variable NEXT_PUBLIC_COLOR_THEME in your .env file. Also make sure that the .env file bind into the container is working correctly.
does it have to be .env file? i've used Environments in docker compose:
magicpack:
image: alexswki/magicpack
dns:
- ${PIHOLE_DNS}
networks:
- ${DOCKER_NETWORK}
restart: always
container_name: magicpack
environment:
- NEXT_PUBLIC_URL="https://magicpack.${SERVER_DOMAIN}" #Set this to the URL which users will access MagicPack with
- NEXT_PUBLIC_COLOR_THEME="DARK" #Can either be "LIGHT" or "DARK".
# - NEXT_PUBLIC_COMPANY_LOGO_PATH="/img/logo.png" Path to your company logo. Actual path will be /magicpack-app/public/img/logo.png
# - NEXT_PUBLIC_COMPANY_LOGO_WIDTH=240 Adjust this value if your company logo is too big or too small. Width in CSS Pixel
- NEXT_PUBLIC_PAGE_TITLE="Wake On Lan" #Enter any string you like in here for the title position.
- NEXT_PUBLIC_PAGE_DESC1="Wake up your company computer using the button below." #Enter any string you like in here for the 1st paragraph.
- NEXT_PUBLIC_PAGE_DESC2="When your computer is running, you can connect via Remote Desktop." #Enter any string you like in here for the 2nd paragraph.
volumes:
- ./configs/magicpack/computers.json:/magicpack/computers.json
# - ./.env:/magicpack/.env.local
labels:
- "traefik.enable=true"
- "traefik.http.routers.magicpack.rule=Host(`magicpack.${SERVER_DOMAIN}`, `wol.${SERVER_DOMAIN}`)"
- "traefik.http.routers.magicpack.entrypoints=websecure"
- "traefik.http.services.magicpack.loadbalancer.server.port=3000"
Yes, I have not yet had time to implement a cleaner solution. The .env file is just being mounted as a file in the source code which is compiled at Docker Build time even with the prebuilt image. See the docker-compose file I provided in the master branch for a reference of the bind mount which is required at the moment :)
Hi, getting this issue after running the docker image:
` ./app/[user]/page.tsx
`