Files
server/docker-compose.yml
Stefan 36ddf78fc9 FIX: Issue with docker network
Issue with docker-compose caused server to refuse to build on Server due to not being able to download from the Internet.
Might need to be reviewed at a later point
2021-11-17 21:27:20 +01:00

38 lines
994 B
YAML
Executable File

version: "3.4"
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"
redis:
container_name: redis
image: redis
restart: always
server:
# REVIEW: This is setting the network context to host (during build time) which is generally considered a bad idea
build:
context: .
network: host
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}