diff --git a/install-mailpit-on-portainer/docker-compose-mailpit.yml b/install-mailpit-on-portainer/docker-compose-mailpit.yml new file mode 100644 index 0000000..b5d8ff3 --- /dev/null +++ b/install-mailpit-on-portainer/docker-compose-mailpit.yml @@ -0,0 +1,17 @@ +version: "3" # Docker Compose file version + +services: + app: + image: axllent/mailpit:v1.13 # Docker image for the 'app' service + container_name: mailpit # Name of the container + restart: unless-stopped # Restart policy for the container (unless stopped) + volumes: + - mailpit_data:/data # Mount a named volume called 'mailpit_data' to /data in the container + environment: + - TZ=UTC # Setting the container's time zone to UTC + ports: + - "8025:8025" # Expose port 8025 on the host and map it to port 8025 in the container + - "1025:1025" # Expose port 1025 on the host and map it to port 1025 in the container + +volumes: + mailpit_data: # Define the named volume 'mailpit_data'