View on GitHub

docker-devbox

[DEV] Docker stacks to quickly setup a dev environment and test some tools.

Usage with docker

Requirements

See docs.docker.com - Install Docker Engine on Ubuntu

Schema

Stacks management

Networking and service exposition

dev.localhost is preferred to localhost as it allows wildcard certificate generation.

Port mapping

By default, service ports (ex : 5342 for PostgreSQL) are only exposed on 127.0.0.1 for security consideration :

Note that you can overwrite this behavior by defining DEVBOX_PORT_PREFIX before starting stacks :

export DEVBOX_PORT_PREFIX=""
cd redis
docker compose up -d

Docker configuration

Docker networking and Traefik

To ease IP whitelisting and avoid the requirement to share the same network between traefik and exposed containers, note that traefik can be installed as a systemd service.

An alternative consists in using network_mode: 'host' on traefik/docker-compose.yml.

In both cases :

Note that :

Resources

docs.docker.com - Reference documentation :

Ansible playbooks :