Open alexlii1971 opened 3 years ago
Hello,
I tried as below:
version: "3.0" services: wg-access-server: # to build the docker image from the source # build: # dockerfile: Dockerfile # context: . image: place1/wg-access-server container_name: wg-access-server cap_add: - NET_ADMIN volumes: - "wg-access-server-data:/data" # - "./config.yaml:/config.yaml" # if you have a custom config file environment: - "WG_ADMIN_USERNAME=admin" - "WG_ADMIN_PASSWORD=123456" - "WG_WIREGUARD_PRIVATE_KEY=YK5W6miyhg7JhHny6p8X4OcgT4sns4mti2KbaC5dIkg=" - "WG_DNS_ENABLED=true" ports: - "7000:7000/tcp" - "51820:51820/udp" devices: - "/dev/net/tun:/dev/net/tun" # shared volumes with the host volumes: wg-access-server-data: driver: local
and I also tired 6000, 5000, quite sure ufw is enabled for those ports, but it seems only work on port 8000?
Thanks
Hi there,
Try keeping the "inside" container port to 8000.
Example:
ports: - "7000:8000/tcp" - "51820:51820/udp"
Hello,
I tried as below:
and I also tired 6000, 5000, quite sure ufw is enabled for those ports, but it seems only work on port 8000?
Thanks