Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Port 5006 is forced within docker #313

Closed
1 task done
hrv231 opened this issue Feb 19, 2024 · 4 comments
Closed
1 task done

[Bug]: Port 5006 is forced within docker #313

hrv231 opened this issue Feb 19, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@hrv231
Copy link

hrv231 commented Feb 19, 2024

Verified issue does not already exist?

  • I have searched and found no existing issue

What happened?

Hello,

If I give my Actual docker its own IP address, the docker forces me to use port 5006, instead of 443 or 80.

Example:

services:
  actual_server:
    image: docker.io/actualbudget/actual-server:latest
    ports:
      - '443:5006'
    environment:
      - ACTUAL_HTTPS_KEY=/data/selfhost.key
      - ACTUAL_HTTPS_CERT=/data/selfhost.crt
    volumes:
      - ./actual-data:/data
    restart: unless-stopped
    networks:
      my-network:
        ipv4_address: 10.10.10.10

networks:
  my-network:
    external: true
    name: my-network

What error did you receive?

No error, but I think we should edit the Dockerbuild to not force port 5006, or allow an environment variable for when you are not using "bridge" network within docker.

Where are you hosting Actual?

Docker

What browsers are you seeing the problem on?

Firefox

Operating System

Linux

@hrv231 hrv231 added the bug Something isn't working label Feb 19, 2024
@intiplink
Copy link
Contributor

Can't test this as my docker instalation in armv6 is busted, but from your docker compose file, you're missing port environment variables https://actualbudget.org/docs/config/#port

@psybers
Copy link
Contributor

psybers commented Apr 7, 2024

I don't think this is a problem. You need to set the ACTUAL_PORT environment variable to change the port Actual binds to. Then you can map that port to any port you want outside of the container.

See #333 for an example.

@psybers
Copy link
Contributor

psybers commented Apr 7, 2024

I think this issue could be closed, as #333 should fix the problem of discoverability on setting custom ports in Docker.

@hrv231
Copy link
Author

hrv231 commented Apr 7, 2024

Can't test this as my docker instalation in armv6 is busted, but from your docker compose file, you're missing port environment variables https://actualbudget.org/docs/config/#port

Correct, by using the ACTUAL_PORT fixed the docker compose issue.

Thanks.

@hrv231 hrv231 closed this as completed Apr 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants