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

Traefik configuration wrong #34

Closed
silardsimon opened this issue Jun 5, 2020 · 0 comments
Closed

Traefik configuration wrong #34

silardsimon opened this issue Jun 5, 2020 · 0 comments

Comments

@silardsimon
Copy link

Hi,

I tried deploying this today, the configuration from the readme for Traefik is quite wrong. Here's a working config, for reference:

version: '3'

services:
  server:
    container_name: guac_server
    image: guacozy/guacozy-server
    restart: always
    depends_on:
      - db
    environment:
      - DJANGO_SECRET_KEY=abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz
      - FIELD_ENCRYPTION_KEY=qjq4ObsXMqiqQyfKgD-jjEGm4ep8RaHKGRg4ohGCi1A=
      - DJANGO_DB_URL=postgres://postgres@db:5432/postgres
      - DJANGO_ALLOWED_HOSTS=*
    ports:
      - 10080:80
      - 10443:443
    labels:
      - traefik.web.port=80
      - traefik.enable=true
      - traefik.web.frontend.rule=Host:guacozy.example.com
      - traefik.docker.network=traefik
  guacd:
    image: linuxserver/guacd
    restart: always
    container_name: guacd
  db:
    container_name: guacdb
    image: postgres:10.4-alpine
    restart: always
    volumes:
    - postgres-data:/var/lib/postgresql/data

volumes:
  postgres-data:

networks:
  default:
    external:
      name: webproxy
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