Skip to content

A Docker Compose configuration for a development environment with PHP-Nginx, MySQL, Adminer, Mailpit, Portainer, and Traefik.

License

Notifications You must be signed in to change notification settings

jturazzi/dev-stack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker

This setup provides a development environment with multiple services including a web server, database, adminer, mail server monitoring tool, portainer, and Traefik for reverse proxy.

Usage

  1. Clone this repository.
  2. Navigate to the directory.
  3. Modify environment variables if needed.
  4. Start Docker containers: docker-compose up -d.

Access services:

Note: DNS configuration is required on your DNS server or in the hosts file to reach the services.

Services

  • Web: PHP-Nginx.
  • Adminer: Database management.
  • DB: MySQL server.
  • Mailpit: Mail server monitoring.
  • Portainer: Docker management.
  • Traefik: Reverse proxy.
  • Watchtower: Automated container updates.

Configuration

  1. Copy the .env.example file and copy it to .env.
  2. Open the .env file in a text editor.
  3. Modify the environment variables as needed. Here are the available variables:
    • TZ: Set the timezone (default: Europe/Paris).
    • MYSQL_ROOT_PASSWORD: Set the MySQL root password (default: root).
    • DEV_DOMAIN: Set the domain for local development (default: local).
  4. Save the .env file.

Contribution

We welcome community contributions. Fork, make changes, submit a pull request.

License

This project is licensed under the MIT License.

About

A Docker Compose configuration for a development environment with PHP-Nginx, MySQL, Adminer, Mailpit, Portainer, and Traefik.

Topics

Resources

License

Stars

Watchers

Forks

Languages