Ubuntu server 18.04 network configuration

Ubuntu server 18.04 network configuration In ubuntu 18.04 network configuration was replaced by netplan To configure network with statik ip we create file /etc/netplan/01-netcfg.yaml network: version: 2 renderer: networkd ethernets: enp2s0: dhcp4: no dhcp6: no addresses: [192.168.0.224/24] gateway4: 192.168.0.1 nameservers: addresses: [192.168.0.240] Delete default file with dhcp network. Caution: DON’T USE TAB, ONLY SPACE’S rm […]

Читать далее…

Awx tower(ansible) with docker-compose

Awx tower(ansible) with docker-compose version: ‘3’ services: postgres: image: «postgres:10.5» volumes: — «./data/pgdata:/var/lib/postgresql/data» restart: always ports: — «35432:5432» environment: POSTGRES_USER: awx POSTGRES_PASSWORD: awxpass POSTGRES_DB: awx rabbitmq: image: «rabbitmq:3» restart: always environment: RABBITMQ_DEFAULT_VHOST: awx memcached: image: «memcached:alpine» restart: always awx_web: image: «ansible/awx_web:latest» links: — rabbitmq — memcached — postgres ports: — «85:8052» hostname: awxweb restart: always […]

Читать далее…

Start docker-compose with supervisor

Start docker-compose with supervisor. How manager docker-compose application with supervisor. Easy. sudo nano /etc/supervisor/cond.d/app.conf [supervisord] nodaemon=false environment=HOME=»/usr/bin/»,USER=»username» [program:app] command=docker-compose up process_name=%(program_name)s ; process_name expr (default %(program_name)s) numprocs=1 ; number of processes copies to start (def 1) directory=/docker-compose/app ; directory to cwd to before exec (def no cwd) priority=1000 ; the relative start priority (default 999) […]

Читать далее…