Create a Docker container for your development web server in Ansible on MacOS

Overview

environment

What i did

Copy the configuration file required to execute ansible together with the directory,

Read them all from the dev.yml file

COPY ./ ./.
RUN ansible-playbook dev.yml

EXPOSE 80 443

CMD ["/bin/bash"]
~~~

Image construction

$ cd (directory with Dockerfile) $ docker build -t web/dev:1.0 .

Start container

$ docker run -itd -p 80:80 -p 443:443 --name test web/dev:1.0
~~~

reference

that's all.

Recommended Posts

Create a Docker container for your development web server in Ansible on MacOS
Build a docker container for a python simple web server
Create a MySQL container for application testing in Ansible AWX
Created a Docker container image for an OpenLDAP server based on Fedora
Create a java web application development environment with docker for mac part2
I tried running Ansible on a Docker container
Let's create a gcloud development environment on a centos8 container
Create a base for your batch processing project in Eclipse.
Run React on a Docker container
Run PureScript on a Docker container
Create a fluentd server for testing
How to create a web server on an EC2 instance on AWS
Create a development environment for Ruby 3.0.0 and Rails 6.1.0 on Ubuntu 20.04.1 LTS
Create a Docker Image for redoc-cli and register it on Docker Hub
Build debug environment on container --Build local development environment for Rails tutorial with Docker-
Create a web environment quickly using Docker
Let's install Docker on Windows 10 and create a verification environment for CentOS 8!
Clone your own web app on GitLab when building a Docker image
Starting with installing Docker on EC2 and running Yellowfin in a container
Creating a java web application development environment with docker for mac part1
Volume of trying to create a Java Web application on Windows Server 2016
Build a development environment to create Ruby on Jets + React apps with Docker
Build a development environment for Docker + Rails6 + Postgresql
Create a Lambda Container Image based on Java 15
Build a streaming server on your iOS app
Let's create a super-simple web framework in Java
Create a tool for name identification in Salesforce
Build a container for Docker x Laravel phpMyAdmin
Build a development environment for Docker, java, vscode
Create a web api server with spring boot
Create a docker environment for Oracle 11g XE
Create a Spring Boot development environment with docker
Create a container image for arm64 of Kibana and register it in GitHub Container Registry. Start Elastic Stack with Docker Compose on Raspberry Pi 4 (64bit)
Install Ubuntu 20.04 in virtual box on windows10 and build a development environment using docker
Create a Java (Gradle) project with VS Code and develop it on a Docker container
How to check the WEB application created in the PC development environment on your smartphone
[For beginners] Until building a Web application development environment using Java on Mac OS
Create a Java (Maven) project with VS Code and develop it on a Docker container
Create an HTTPS file server for development with ring-jetty-adapter
Create a Docker container to convert EPS to PGF source
Create API key authentication for Web API in Spring Security
Update your Java knowledge by writing a gRPC server in Java (2)
[Rails] Settings for loading web fonts in CloudFront on Heroku
Web application development environment construction in Java (for inexperienced people)
How to create a lightweight container image for Java apps
Run lilypond on Docker on macOS Catalina to create sheet music
Update your Java knowledge by writing a gRPC server in Java (1)
I searched for a web framework with Gem in Ruby
A story about speeding up unittest on Docker for Mac
I tried running a Docker container on AWS IoT Greengrass 2.0
Try Hello World using plain Java on a Docker container
Create a Kibana container image for ARM64 (Raspberry Pi/Mac M1)
Introducing Spring Boot2, a Java framework for web development (for beginners)
I tried to create a padrino development environment with Docker
Configuration script for using docker in proxy environment on ubuntu 20.04.1