forked from compliance-framework/api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (36 loc) · 779 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (36 loc) · 779 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
version: '3.8'
services:
api:
build:
context: .
dockerfile: Dockerfile
target: local
image: api:local
ports:
- "8080:8080"
depends_on:
- postgres
volumes:
- .:/app
environment:
- APP_PORT=8080
- CCF_DB_DRIVER=postgres
- CCF_DB_CONNECTION=host=postgres user=postgres password=postgres dbname=ccf port=5432 sslmode=disable
networks:
- continuous-compliance
postgres:
image: postgres:17.5
volumes:
- postgres:/var/lib/postgresql/data
ports:
- "5432:5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=ccf
networks:
- continuous-compliance
networks:
continuous-compliance:
volumes:
postgres: