[Linux] Start Apache container with Docker

Introduction

Make a note of the flow up to starting the Apache container with Docker

Environmental information

docker-compose.yml settings

version: '3'

services:
  apache:
    build: apache
    container_name: apache
    ports:
      - 80:80
    volumes:
      - ./apache/conf/httpd.conf:/usr/local/apache2/conf/httpd.conf

Dockerfile settings

apache

FROM httpd:latest

RUN apt update \
    && apt install -y \
    git \
    gcc \
    make \
    build-essential \
    wget \
    curl \
    llvm \
    xz-utils \
    tk-dev \
    zlib1g-dev \
    libncurses5-dev \
    libbz2-dev \
    libreadline-dev \
    libsqlite3-dev \
    libssl-dev \
    libxml2-dev \
    libxmlsec1-dev \
    liblzma-dev \
    libpq-dev \
    libffi-dev

WORKDIR /usr/local/apache2

Start apache container

docker-compose up -d apache

Recommended Posts

[Linux] Start Apache container with Docker
Start Apache Solr with Embedded.
Introduction to Linux Container / Docker (Part 1)
Wait for the container service to start with docker healthcheck
Introduction to Linux Container / Docker (Part 2)
[SRE / Docker] Start control with Dockerize
mysql doesn't start up with docker.
Restart apache with docker php-apache image
Container does not start with docker-compose
How to start Camunda with Docker
Build WebRTC Janus with Docker container
MySQL container does not start in Docker
[Docker] Start the container as soon as possible
[Docker] Start container, start bash in container, delete image
Docker + Spring-boot start
How to start a Docker container with a volume mounted in a batch file
Start SQL Server with Docker & register initial data
Keep docker container running with no resident process running
Setting to exit from Docker container with VScode
Update container image with KUSANAGI Runs on Docker
Docker Container Operations with Docker-Client API for Java
Try using another Servlet container Jetty with Docker
[Part 1] Creating a Docker container that delivers Markdown in HTML with Apache / Pandoc
Until you try running Apache Kafka with docker image
Launch MariaDB with Docker
Rails deploy with Docker
Access and debug Circle CI Docker container with ssh
Explode Docker with WSL2
Automatically start the container
Operate Emby with Docker
Start k3s with docker-compose
Try WildFly with Docker
Use ngrok with Docker
Docker Compose does not start with docker.credentials.errors.InitializationError error message
[Docker] How to see the contents of Volumes. Start a container with root privileges.
Run Payara with Docker
[Docker] Connection with MySQL
[Docker] Build an Apache container on EC2 using dockerfile
Php settings with Docker
A memorandum when installing Docker and building a Linux container
Getting Started with Docker
Disposable PHP with Docker
Install Composer with Docker
Proceed with Rust official documentation on Docker container (1. Getting started)
[Docker] Delete only the volume associated with a specific container
Time is wrong with the application launched on the Docker container
Getting Started with GitHub Container Registry instead of Docker Hub
Pytorch execution environment with Docker
Use GDAL with Python with Docker
Deploy with EC2 / Docker / Laravel
Run TAO Core with Docker
Docker management with VS Code
docker review image creation-container start
Set up GitLab with docker
CSV output with Apache Commons CSV
Access Apache Kafka with Micronaut
Container management with ECS + CodePipline
Run Rails whenever with docker
Get started with DynamoDB with docker
Docker autostart settings with wsl2
[Docker] Rails 5.2 environment construction with docker