-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.common.yml
37 lines (35 loc) · 1.01 KB
/
compose.common.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
# NOTE: This setup is meant to be used for development purposes only.
services:
postgresql:
image: docker.io/bitnami/postgresql:16
# Expose the port to the host to enable baremetal controlplane development
ports:
- 5432:5432
volumes:
- ./container-configs/postgres/pgdb:/bitnami/postgresql
environment:
- ALLOW_EMPTY_PASSWORD=yes
- POSTGRESQL_DATABASE=controlplane
- POSTGRESQL_USERNAME=postgres
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
interval: 2s
retries: 10
# in memory-only vault for development
# note that secrets will get removed when the container is restarted
vault:
image: docker.io/vault:1.12.3
cap_add:
- IPC_LOCK
ports:
- 8200:8200
environment:
- VAULT_DEV_ROOT_TOKEN_ID=notasecret
healthcheck:
test: [ "CMD", "wget", "--spider", "http://127.0.0.1:8200/v1/sys/health" ]
interval: 10s
timeout: 3s
retries: 10
start_period: 5s
volumes:
postgresql_data: