Skip to content

Docker and Docker Compose Installation

muratugureminoglu edited this page Jan 22, 2022 · 5 revisions

Dockerfile

1. Download Dockerfile

wget https://raw.githubusercontent.com/ant-media/Scripts/master/docker/Dockerfile_Process -O Dockerfile

2. Build Docker Image

Download and save Ant Media Server ZIP file in the same directory with Dockerfile. Then run the docker build command from command line

docker build --network=host -t antmediaserver --build-arg AntMediaServer=<Replace_With_Ant_Media_Server_Zip_File> .

3. Run the Docker Container

Now we have a docker container with Ant Media Server. Run the image.

docker run -d --name antmedia --network=host -it antmediaserver

Optional: If you would like to use persistent volume, you can use it as follows. In this way, volume keeps even if your container is destroyed.

docker volume create antmedia_volume
docker run -d --name antmedia --mount source=antmedia_volume,target=/usr/local/antmedia/ --network=host -it antmediaserver

Docker Compose

1. Download docker-compose and Dockerfile files

wget https://raw.githubusercontent.com/ant-media/Scripts/master/docker/docker-compose.yml
wget https://raw.githubusercontent.com/ant-media/Scripts/master/docker/Dockerfile_Process -O Dockerfile

2. Edit zip file name in docker-compose.yml file as follows then save it.

AntMediaServer: 'ant-media-server-enterprise-2.4.1-20211124_1803.zip'

3. Build Docker Image

docker-compose build

4. Run the Docker Compose file

docker-compose up -d

Optional: If you would like to mount an existing volume, simply change the lines below and uncomment it.

    volumes:
      - antmedia_vol:/usr/local/antmedia/
volumes:
  antmedia_vol:
    external: true
    name:
      antmedia_volume

User Guide

Reference

Troubleshooting

Draft

Proposals

Clone this wiki locally