-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (41 loc) · 1.17 KB
/
docker-compose.yml
File metadata and controls
43 lines (41 loc) · 1.17 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
services:
postgres:
image: postgres:16
container_name: teamvault-db
environment:
POSTGRES_USER: teamvault
POSTGRES_PASSWORD: S3CR3T
POSTGRES_DB: teamvault
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U teamvault"]
interval: 10s
timeout: 5s
retries: 5
teamvault:
image: docker.io/bborbe/teamvault:${VERSION:-0.11.8}
container_name: teamvault
platform: linux/amd64
depends_on:
postgres:
condition: service_healthy
ports:
- "8000:8000"
environment:
BASE_URL: ${BASE_URL:-http://localhost:8000}
SECRET_KEY: ${SECRET_KEY:?required}
FERNET_KEY: ${FERNET_KEY:?required}
SALT: ${SALT:?required}
DEBUG: ${DEBUG:-disabled}
DATABASE_HOST: postgres
DATABASE_NAME: teamvault
DATABASE_USER: teamvault
DATABASE_PASSWORD: S3CR3T
DATABASE_PORT: 5432
SUPERUSER_NAME: ${SUPERUSER_NAME:-admin}
SUPERUSER_PASSWORD: ${SUPERUSER_PASSWORD:-admin}
SUPERUSER_EMAIL: ${SUPERUSER_EMAIL:-admin@example.com}
volumes:
postgres_data: