-
-
Notifications
You must be signed in to change notification settings - Fork 57
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (34 loc) · 773 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (34 loc) · 773 Bytes
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
version: '3.8'
networks:
postgres:
services:
mailarchive-app:
build: .
restart: always
ports:
- "5000:5000"
networks:
- postgres
volumes:
- ./appsettings.json:/app/appsettings.json
- ./logs:/app/logs
- ./data-protection-keys:/app/DataProtection-Keys
depends_on:
- postgres
postgres:
image: postgres:14-alpine
restart: always
environment:
POSTGRES_DB: MailArchiver
POSTGRES_USER: mailuser
POSTGRES_PASSWORD: masterkey
volumes:
- ./postgres-data:/var/lib/postgresql/data
networks:
- postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready -U mailuser -d MailArchiver"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s