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.yml missing? #91

Open
ghost opened this issue May 24, 2023 · 1 comment
Open

docker-compose.yml missing? #91

ghost opened this issue May 24, 2023 · 1 comment

Comments

@ghost
Copy link

ghost commented May 24, 2023

is there a docker-compose file available? am i missing something? O.o

@MrTomek
Copy link

MrTomek commented May 31, 2023

I use :

with traefik

services:
  app:
    container_name: idlers-app
    image: ghcr.io/cp6/my-idlers:latest
    restart: always
    environment:
      DB_HOST: db
      DB_DATABASE: db
      DB_USERNAME: user
      DB_PASSWORD: pass
    networks:
      - default
      - traefik-public
    labels:
      - "traefik.enable=true"
      - "traefik.http.services.idlers-serv.loadbalancer.server.port=8000"
      - "traefik.http.routers.idlers.service=idlers-serv"
      - "traefik.http.routers.idlers.entrypoints=websecure"
      - "traefik.http.routers.idlers.rule=Host(`idlers.xxx.xx`)"
      - "traefik.http.routers.idlers.tls=true"

  db:
    image: mariadb:latest
    container_name: idlers-db
    restart: always
    command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
    environment:
      MYSQL_ROOT_PASSWORD: passRoot
      MYSQL_USER: user
      MYSQL_PASSWORD: pass
      MYSQL_DATABASE: db
    networks:
      - default
    volumes:
      - ./db:/var/lib/mysql

networks:
  default:
    external: false
    ipam:
      config:
        - subnet: 172.30.0.160/28
          gateway: 172.30.0.161
  traefik-public:
    external: true

without:

services:
  app:
    container_name: idlers-app
    image: ghcr.io/cp6/my-idlers:latest
    restart: always
    ports:
      - 8000:8000
    environment:
      DB_HOST: db
      DB_DATABASE: db
      DB_USERNAME: user
      DB_PASSWORD: pass

  db:
    image: mariadb:latest
    container_name: idlers-db
    restart: always
    command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
    environment:
      MYSQL_ROOT_PASSWORD: passRoot
      MYSQL_USER: user
      MYSQL_PASSWORD: pass
      MYSQL_DATABASE: db
    volumes:
      - ./db:/var/lib/mysql

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