1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/postfixadmin/docker-compose.yml
2023-03-28 19:13:53 +08:00

33 lines
778 B
YAML

version: "3.8"
services:
postfixadmin:
image: postfixadmin:3-apache
ports:
- "8000:80"
environment:
- POSTFIXADMIN_DB_TYPE=pgsql
- POSTFIXADMIN_DB_HOST=postgres
- POSTFIXADMIN_DB_USER=postfixadmin
- POSTFIXADMIN_DB_NAME=postfixadmin
- POSTFIXADMIN_DB_PASSWORD=postfixadmin
- POSTFIXADMIN_SMTP_SERVER=postfix
- POSTFIXADMIN_SMTP_PORT=25
- POSTFIXADMIN_ENCRYPT=md5crypt
depends_on:
- postgres
restart: unless-stopped
postgres:
image: postgres:14-alpine
ports:
- "5432:5432"
volumes:
- ./data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=postfixadmin
- POSTGRES_PASSWORD=postfixadmin
- POSTGRES_DB=postfixadmin
restart: unless-stopped