This repository has been archived by the owner on Oct 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
docker-compose.yml
74 lines (71 loc) · 2.49 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
version: "3.9"
services:
data-core-v1:
container_name: datacore
# data core build information
build: .
restart: always
#image: registry.gitlab.com/soyvolon/datacore:nightly
volumes:
# this is going to need to be configured properly at some point.
- ./docker-data/dc/config:/app/Config
# needs an image folder volume as well - maybe.
- ./docker-data/dc/unsafe_uploads:/app/unsafe_uploads
depends_on:
- postgres
- mailserver
postgres:
image: "postgres:12"
container_name: postgres
restart: always
env_file: docker-data/db/postgres.env
ports:
- "5000:5432"
volumes:
- /var/lib/postgresql/data-core-v1/data:/var/lib/postgresql/data
mailserver:
image: ghcr.io/docker-mailserver/docker-mailserver:latest
container_name: mailserver
# Provide the FQDN of your mail server here (Your DNS MX record should point to this value)
hostname: mail.ariabounds.me
env_file: smtp/mailserver.env
# More information about the mail-server ports:
# https://docker-mailserver.github.io/docker-mailserver/latest/config/security/understanding-the-ports/
# To avoid conflicts with yaml base-60 float, DO NOT remove the quotation marks.
ports:
- "25:25" # SMTP (explicit TLS => STARTTLS)
- "143:143" # IMAP4 (explicit TLS => STARTTLS)
- "465:465" # ESMTP (implicit TLS)
- "587:587" # ESMTP (explicit TLS => STARTTLS)
- "993:993" # IMAP4 (implicit TLS)
volumes:
- ./docker-data/dms/mail-data/:/var/mail/
- ./docker-data/dms/mail-state/:/var/mail-state/
- ./docker-data/dms/mail-logs/:/var/log/mail/
- ./docker-data/dms/config/:/tmp/docker-mailserver/
- ./docker-data/certbot/conf:/etc/letsencrypt
- /etc/localtime:/etc/localtime:ro
restart: always
stop_grace_period: 1m
# Uncomment if using `ENABLE_FAIL2BAN=1`:
# cap_add:
# - NET_ADMIN
healthcheck:
test: "ss --listening --tcp | grep -P 'LISTEN.+:smtp' || exit 1"
timeout: 3s
retries: 0
nginx:
container_name: nginx
image: nginx
ports:
- 80:80
- 443:443
restart: unless-stopped
volumes:
- ./docker-data/nginx/conf.d/map.conf/:/etc/nginx/conf.d/map.conf
- ./docker-data/nginx/sites-enabled/:/etc/nginx/sites-enabled/
- ./docker-data/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./docker-data/certbot/conf:/etc/letsencrypt
- ./docker-data/certbot/www:/var/www/certbot
depends_on:
- data-core-v1