- GIT
- Docker v19.03.0+
- Docker Compose specification v3.8
- Clone repo with command:
git clone https://github.com/ast21/docker-collection.git
- Create
.env
file and set environments
cp .env.example .env
- Create docker networks
docker network create traefik
docker network create databases
docker network create tools
Run one container:
docker compose up -d postgresql
or run multiple containers:
docker compose up -d postgresql adminer
Create file docker-compose.override.yaml
.
cp docker-compose.override.yaml.example docker-compose.override.yaml
See the example:
# docker-compose.override.yaml
services:
postgresql:
ports: [ "5432:5432" ]
Then run your container.