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

docker-compose environment "USERS" does not work #92

Closed
macaron opened this issue Apr 22, 2021 · 1 comment
Closed

docker-compose environment "USERS" does not work #92

macaron opened this issue Apr 22, 2021 · 1 comment

Comments

@macaron
Copy link

macaron commented Apr 22, 2021

docker-compose environment "USERS" does not work 😭

version: '3.7'

services:
  vpn:
    image: siomiz/softethervpn:9745-alpine
    ports:
      - "500:500"
      - "4500:4500"
      - "1701:1701"
    environment:
      - USERS=user1:password1;user2:password2
      - SPW=mysoftetherserver39
      - HPW=mysoftetherhub39
      - PSK=vpn
    privileged: true
    restart: always
    volumes:
      - ./logs:/usr/vpnserver

When execute docker-compose up -d, cause restart loop…

$ docker-compose logs -f
vpn_1  | # ========================
vpn_1  | # <use the password specified at -e USERS>
vpn_1  | # ========================
vpn_1  | /usr/bin/vpnserver: line 2: /usr/vpnserver/vpnserver: not found

my machine

Ubuntu 20.04
Docker version 20.10.6, build 370c289
docker-compose version 1.29.1, build c34c88b2

Thank you.

@macaron
Copy link
Author

macaron commented Apr 22, 2021

Sorry. I misake docker volume mount 🙇‍♂️

- ./logs:/usr/vpnserver was mistake.

    volumes:
      - ./logs:/usr/vpnserver/sever_log
      - ./logs:/usr/vpnserver/packet_log
      - ./logs:/usr/vpnserver/security_log

good work! Thank you 🙏

@macaron macaron closed this as completed Apr 22, 2021
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

No branches or pull requests

1 participant