-
-
Notifications
You must be signed in to change notification settings - Fork 108
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
105 lines (99 loc) · 2.84 KB
/
Copy pathdocker-compose.yml
File metadata and controls
105 lines (99 loc) · 2.84 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
services:
postgres:
image: ghcr.io/aliasvault/postgres:latest
volumes:
- ./database/postgres:/var/lib/postgresql/data:rw
- ./secrets:${SECRETS_PATH:-/secrets}:ro
env_file:
- .env
restart: always
environment:
POSTGRES_DB: aliasvault
POSTGRES_USER: aliasvault
POSTGRES_PASSWORD_FILE: ${SECRETS_PATH:-/secrets}/postgres_password
healthcheck:
test: ["CMD-SHELL", "pg_isready -U aliasvault"]
interval: 5s
timeout: 5s
retries: 5
start_period: 10s
client:
image: ghcr.io/aliasvault/client:latest
expose:
- "3000"
restart: always
env_file:
- .env
api:
image: ghcr.io/aliasvault/api:latest
expose:
- "3001"
volumes:
- ./database:/database:rw
- ./logs:/logs:rw
- ./secrets:${SECRETS_PATH:-/secrets}:ro
restart: always
env_file:
- .env
depends_on:
postgres:
condition: service_healthy
admin:
image: ghcr.io/aliasvault/admin:latest
expose:
- "3002"
volumes:
- ./database:/database:rw
- ./logs:/logs:rw
- ./secrets:${SECRETS_PATH:-/secrets}:ro
restart: always
env_file:
- .env
depends_on:
postgres:
condition: service_healthy
reverse-proxy:
image: ghcr.io/aliasvault/reverse-proxy:latest
ports:
- "${HTTP_PORT:-80}:80"
- "${HTTPS_PORT:-443}:443"
volumes:
- ./certificates/ssl:/etc/nginx/ssl:rw
- ./certificates/letsencrypt:/etc/nginx/ssl-letsencrypt:rw
- ./certificates/letsencrypt/www:/var/www/certbot:rw
depends_on:
- admin
- client
- api
- smtp
restart: always
env_file:
- .env
smtp:
image: ghcr.io/aliasvault/smtp:latest
ports:
- "${SMTP_PORT:-25}:25"
- "${SMTP_TLS_PORT:-587}:587"
volumes:
- ./database:/database:rw
- ./logs:/logs:rw
- ./secrets:${SECRETS_PATH:-/secrets}:ro
- ./certificates/smtp:/certificates/smtp:ro
restart: always
env_file:
- .env
depends_on:
postgres:
condition: service_healthy
task-runner:
image: ghcr.io/aliasvault/task-runner:latest
volumes:
- ./database:/database:rw
- ./logs:/logs:rw
- ./secrets:${SECRETS_PATH:-/secrets}:ro
restart: always
env_file:
- .env
depends_on:
postgres:
condition: service_healthy