Need help to deploy strapi docker on my server

System Information
  • Strapi Version: 3.2.5 in docker
  • Operating System: ubuntu 20.04
  • Database: sqLite
  • Node Version: 12
  • NPM Version: ~6
  • Yarn Version:

Hello, i’m running a strapi/strapi docker container behind a caddyv2 reverse proxy. I’m new to strapi and self-hosting and i don’t understand how to make this works. My plan is to run strapi with sqLite in production as i want to keep the stack light.

so my docker-compose looks like this

version: '3'
    image: strapi/strapi
    container_name: strapi  
    restart: unless-stopped
      - ~/docker/strapi/app:/srv/app
      - '1337:1337'

my CaddyFile contains this: {
	reverse_proxy * localhost:1337

in strapi, my config/server.js file is:

  host: env('HOST', ''),
  port:'PORT', 1337),
  url: ''
  admin: {
    auth: {
      secret: env('ADMIN_JWT_SECRET', 'xxxxxxxxxxxxxxxxxxxx'),

From now, i’m not sure what i should do. cause i cant access my admin with the url:

I did not forget to restart both caddy and docker after changing my various configuration files. I tried tweaking a little bit without success and cannot find precise documentation for what i’m trying to do. I’m probably missing few things and hope for some help to help me run my project.

thanks a lot.

You will want to make sure this has http:// or https:// in it and rebuild the admin panel.