K
K
Kolya Vantukh2020-08-18 10:26:00
Docker
Kolya Vantukh, 2020-08-18 10:26:00

Is it possible to configure an image from dockerhub?

I am using docker-compose. There is an image of Vesta niiknow / vestacp

services:
  vesta:
    image: niiknow/vestacp
    container_name: vesta
    cap_add: ['NET_RAW', 'NET_ADMIN']
#    privileged: true
    volumes:
      - "./backup:/backup"
      - "./vesta:/vesta"
      - "./home:/home"
      - "./php-worker/custom.ini:/etc/php/${PHP_VERSION}/apache2/conf.d/custom.ini"
      - "./php-worker/custom.ini:/etc/php/${PHP_VERSION}/cli/conf.d/custom.ini"
      - "./php-worker/custom-mysql.cnf:/etc/mysql/conf.d/custom-mysql.cnf"
    ports:
#      - "3322:22"
      - "80:80"
      - "443:443"
      - "9088:8083"
    ulimits:
      nproc: 65535
      nofile:
        soft: 20000
        hard: 40000
    sysctls:
      net.core.somaxconn: '511'
    labels:
      - "Vesta Control Panel"
    restart: always

I need to tweak the image a bit before building, install some extensions. For local images, I know Dockerfile is used for these purposes, but what about third-party images?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question