Skip to content

I can't get this to work #364

Closed Answered by nemanjam
nemanjam asked this question in Q&A
Discussion options

You must be logged in to vote

I got it to work. Client ports were incorrectly configured, it should be like this:

docker-compose.yml

version: '3.8'

services:
  rathole:
    image: rapiz1/rathole:v0.5.0
    command: --client /config/rathole.client.toml
    restart: unless-stopped
    volumes:
      - ./rathole.client.toml:/config/rathole.client.toml:ro
   
    # do not expose any ports here

    networks:
      - proxy

  nginx-with-volume:
    image: nginx:stable-alpine3.17-slim
    container_name: nginx-with-volume
    restart: unless-stopped
    depends_on:
      - rathole
    volumes:
      - ./website:/usr/share/nginx/html
      - ./nginx/nginx.conf:/etc/nginx/nginx.conf
    networks:
      - proxy

networks:
  p…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nemanjam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant