Skip to content

Add Docker support - #44

Open
austinharms wants to merge 8 commits into
recflare:mainfrom
austinharms:add-docker
Open

Add Docker support#44
austinharms wants to merge 8 commits into
recflare:mainfrom
austinharms:add-docker

Conversation

@austinharms

Copy link
Copy Markdown

Proof of concept docker deployment

Deploys mono, econ and img workers.
Does not deploy www worker due to Turnstile (It may be possible, I have not tried due to it not being required to play the game).
All worker data is stored in /var/lib/recflare within the container
Still requires a reverse proxy and ssl certs to be usable.

Example Nginx config:

server {
  listen 443 ssl;
  server_name example.domain;
  ssl_certificate example.domain.crt;
  ssl_certificate_key example.domain.key;
  ssl_protocols  TLSv1.3 TLSv1.2;
  
  # Replace the default ns service response to provide correct domain mappings as the dev ns worker does not
  # Requires a correct response to be stored in /var/www/recflare/nameservice.json
  location = / {
    root /var/www/recflare/;
    default_type application/json;
    try_files /nameservice.json =404;
  }

  # Forward img request to img service worker,
  # assumes worker hostname is recflare and port is 8799 (default port at the time of writing)
  location /img/ {
     proxy_pass http://recflare:8799/;
  }

  # Forward econ request to econ service worker,
  # assumes worker hostname is recflare and port is 8798 (default port at the time of writing)
  location /econ/ {
     proxy_pass http://recflare:8798/;
  }

  # Forward all other request to mono service worker (using full path),
  # assumes worker hostname is recflare and port is 8805 (default port at the time of writing)
  location / {
     proxy_pass http://recflare:8805;
  }
}

@djdevin

djdevin commented Aug 30, 2026

Copy link
Copy Markdown
Collaborator

This is a really cool idea, thanks! I'll check it out and refine it a bit when I get some time.

We could probably add a docker-compose.yml to set up nginx

@austinharms

Copy link
Copy Markdown
Author

Nginx is now setup inside the docker container and it should be possible to deploy recflare via docker

@austinharms
austinharms marked this pull request as ready for review September 3, 2026 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants