-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
41 lines (41 loc) · 995 Bytes
/
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
services:
vaultwarden:
image: vaultwarden/server:dev
build: .
restart: on-failure
depends_on:
- postgres
ports:
- "8080:8080"
environment:
DATABASE_URL: postgresql://vaultwarden:vaultwarden@postgres:5432/vaultwarden
ADMIN_TOKEN: admin
ROCKET_PORT: "8080"
SMTP_HOST: mailhog
SMTP_PORT: "1025"
SMTP_SECURITY: off
SMTP_USERNAME: vaultwarden
SMTP_PASSWORD: vaultwarden
SMTP_FROM: [email protected]
volumes:
- vaultwarden-data:/data
postgres:
image: postgres:16.4-alpine
user: postgres
restart: on-failure
environment:
POSTGRES_DB: vaultwarden
POSTGRES_USER: vaultwarden
POSTGRES_PASSWORD: vaultwarden
volumes:
- postgres-data:/var/lib/postgresql/data
mailhog:
image: mailhog/mailhog:v1.0.1
restart: on-failure
ports:
- "8081:8025"
environment:
MH_HOSTNAME: mailhog
volumes:
vaultwarden-data:
postgres-data: