środa, 5 lutego 2020

sobota, 1 lutego 2020

kafka - docker-compose

version: '2'
services:
  zookeeper:
    image: wurstmeister/zookeeper
    ports:
      - "2181:2181"
  kafka:
    image: wurstmeister/kafka
    ports:
      - "9092:9092"
    environment:
      KAFKA_ADVERTISED_HOST_NAME: 192.168.1.100
      KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
Podziel się:

traefik + java service (docker-compose)


version: '3.3'
services:
    javaservice-1:
        image: service
        container_name: javaservice-1
        restart: always
        labels:
            - traefik.enable=true
            - traefik.http.routers.javaservicerouter.rule=Host(`localhost`)
            - traefik.http.routers.javaservicerouter.entrypoints=web
            - traefik.port=8080
        networks:
            - web
    traefik:
        image: 'traefik:latest'
        container_name: traefik
        command:
            - '--log.level=INFO'
            - '--api.insecure=true'
            - '--providers.docker=true'
            - '--providers.docker.exposedbydefault=false'
            - '--entrypoints.web.address=:80'
            - '--entrypoints.test.address=:8081'
        networks:
            - web
        ports:
            - '80:80'
            - '8080:8080'
            - '8081:8081'
        volumes:
            - '/var/run/docker.sock:/var/run/docker.sock:ro'
networks:
    web:
        external:
            name: traefik_webgateway
Podziel się:

poniedziałek, 13 stycznia 2020

Extend swap ubuntu

Turn off all swap processes
sudo swapoff -a

Resize the swap
sudo dd if=/dev/zero of=/swapfile bs=16G count=8

Make the file usable as swap
sudo mkswap /swapfile

Activate the swap file
sudo swapon /swapfile

Check the amount of swap available
grep SwapTotal /proc/meminfo

Podziel się:

wtorek, 5 listopada 2019

czwartek, 19 września 2019

poniedziałek, 2 września 2019