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

Documentation: fix docker-compose.yml #35

Open
Mugane opened this issue Oct 6, 2022 · 0 comments
Open

Documentation: fix docker-compose.yml #35

Mugane opened this issue Oct 6, 2022 · 0 comments

Comments

@Mugane
Copy link

Mugane commented Oct 6, 2022

The documentation should wrap that docker-compose.yml file under services: like so:

services:
  nginx-ssl-proxy:
    image: danieldent/nginx-ssl-proxy
    restart: always
    environment:
      UPSTREAM: 127.0.0.1:8080
      SERVERNAME: test.example.com
      EXTRANAMES: www.test.example.com,test2.example.com
    ports:
      - "80:80"
      - "443:443"
    volumes:
      - "/etc/letsencrypt"

If you don't, you'll get an error such as:
(root) Additional property nginx-ssl-proxy is not allowed

Also, docker-compose up is deprecated, now it's docker compose up

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