-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (52 loc) · 1.4 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
version: '3.8'
name: 'propeller'
services:
argo-cd:
build:
context: '../'
dockerfile: 'dev/Dockerfile-counterfact-argocd'
ports:
- '3100:3100'
# PostgreSQL database for Vault
postgres-vault:
image: postgres:12.19-alpine3.20
restart: unless-stopped
environment:
POSTGRES_DB: vault
POSTGRES_USER: vault
POSTGRES_PASSWORD: vault_password # This is for development purposes only!
volumes:
- postgresql:/var/lib/postgresql/data
# PostgreSQL database for application
postgres-demo:
image: postgres:12.19-alpine3.20
restart: unless-stopped
environment:
POSTGRES_DB: demo
POSTGRES_USER: demo
POSTGRES_PASSWORD: demo_password # This is for development purposes only!
ports:
- '5432:5432'
volumes:
- demo-data:/var/lib/postgresql/data
- ./postgres:/docker-entrypoint-initdb.d
# Vault server
vault:
image: hashicorp/vault:1.17.1
restart: unless-stopped
depends_on:
- postgres-vault
ports:
- '8200:8200' # Vault UI
environment:
- VAULT_ADDR=http://localhost:8200
- DATABASE_DRIVER=postgres
- DATABASE_URL=postgres://vault:vault_password@postgres:5432/vault
- VAULT_DEV_ROOT_TOKEN_ID=root-token
volumes:
- vault-data:/vault/data
# Volumes for persistence (optional, comment out if not needed)
volumes:
postgresql:
demo-data:
vault-data: