-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (42 loc) · 926 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (42 loc) · 926 Bytes
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:
secure_coding:
image: secure_coding_lab
environment:
- VAULT_ADDR=http://vault:8200
volumes:
- ./local_data:/local_data
cap_add:
- CAP_IPC_LOCK
links:
- postgres
- vault
command: ["/usr/bin/sleep", "infinite"]
build:
dockerfile: ./secure_coding.Dockerfile
context: .
postgres:
image: postgres:16
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=not_so_secure_default_password
ports:
- "5432:5432"
volumes:
- db:/var/lib/postgresql/data
vault:
image: vault:1.13.3
restart: always
environment:
- VAULT_DEV_LISTEN_ADDRESS=0.0.0.0:8200
- VAULT_ADDR=http://127.0.0.1:8200
# - VAULT_DEV_ROOT_TOKEN_ID=hvs.insecure_token
links:
- postgres
cap_add:
- CAP_IPC_LOCK
ports:
- "8200:8200"
volumes:
db:
driver: local