Skip to content

le-phare/docker-stack

Repository files navigation

Development stack

This repository contains the dev configuration for commons containers.

Install

git clone git@github.com:le-phare/docker-stack.git
cd docker-stack

Configuration

You need to set the DOCKER_HOST_SUFFIX env var in your shell, then copy .env.dist to .env.

echo 'export DOCKER_HOST_SUFFIX="change_me"' >> ~/.bash_profile
cp .env.dist .env
docker compose up -d

GitHub Container Registry :

  1. Go to Settings / Developer Settings / Personal Access Token
  2. Enter "Docker stack" in the Name field and check write:packages and read:packages
  3. Copy the generated token
  4. In a terminal:
docker login ghcr.io
Username: # Enter your login or your email
Password: # Enter the generated token copied earlier

The message Login successed should appear.

Finish setup

./setup.sh

Restart your browsers!

The base stack

The base stack contains the minimal configuration related to web development.

  • Adminer
  • Caddy
  • MailDev
  • Memcached

Compose your stack

The default configuration include 3 databases containers : MySQL 5, PostgreSQL 9 and PostgreSQL 17.

You can change the loaded containers by changing the COMPOSE_FILE environment variable in the .env file.

The default configuration can be found in the .env.dist file.

The repository currently supports these databases:

  • PostgreSQL 9, 10, 11, 12, 13, 14, 15, 16, 17
  • MySQL 5
  • MariaDB 10

The repository currently supports these message brokers:

  • RabbitMQ 3.8

Redisinsight is available:

An optional watchtower service is available to update docker images automatically: Add watchtower.yml to COMPOSE_FILE variable and set a schedule with WATCHTOWER_SCHEDULE variable in your .env file (default is 0 0 17 * * *).

You should also login to your docker hub account to prevent rate limit issues.

About

This repository contains the dev configuration for common containers.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 12