mirror of
https://github.com/detleph/server.git
synced 2026-09-04 16:46:04 +02:00
31 lines
766 B
YAML
Executable File
31 lines
766 B
YAML
Executable File
version: "3"
|
|
services:
|
|
mail:
|
|
image: boky/postfix
|
|
restart: always
|
|
environment:
|
|
- ALLOWED_SENDER_DOMAINS=mail.${DOMAIN}
|
|
ports:
|
|
- "587:587"
|
|
container_name: "postfix"
|
|
volumes:
|
|
- ./host/keys/:/etc/opendkim/keys
|
|
postgres:
|
|
image: postgres
|
|
restart: always
|
|
environment:
|
|
- POSTGRES_USER=server
|
|
- POSTGRES_PASSWORD=${DATABASE_PASSWORD}
|
|
container_name: "postgres"
|
|
server:
|
|
build: .
|
|
restart: always
|
|
container_name: "server"
|
|
ports:
|
|
- ${PORT:-3000}:${PORT:-3000}
|
|
environment:
|
|
- PORT=${PORT:-3000}
|
|
- DATABASE_URL=postgresql://server:${DATABASE_PASSWORD}@postgres:5432/management?schema=public
|
|
- DATABASE_USER=server
|
|
- DATABASE_PASSWORD=${DATABASE_PASSWORD}
|