forked from ethyca/fidesops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
73 lines (68 loc) · 1.6 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
services:
fidesops:
container_name: fidesops
build:
context: .
dockerfile: Dockerfile
depends_on:
- db
- redis
expose:
- 8080
healthcheck:
test: ["CMD", "curl", "-f", "http://0.0.0.0:8080/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 1s
ports:
- "8080:8080"
volumes:
- type: bind
source: ./
target: /fidesops
read_only: False
- /fidesops/src/fidesops.egg-info
environment:
- FIDESOPS__DEV_MODE=${FIDESOPS__DEV_MODE}
- FIDESOPS__LOG_PII=${FIDESOPS__LOG_PII}
- FIDESOPS__HOT_RELOAD=${FIDESOPS__HOT_RELOAD}
- FIDESOPS__ROOT_USER__ANALYTICS_ID=${FIDESOPS__ROOT_USER__ANALYTICS_ID}
db:
image: postgres:12
volumes:
- app-db-data:/var/lib/postgresql/data/pgdata
environment:
- PGDATA=/var/lib/postgresql/data/pgdata
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=216f4b49bea5da4f84f05288258471852c3e325cd336821097e1e65ff92b528a
- POSTGRES_DB=app
expose:
- 5432
ports:
- "0.0.0.0:5432:5432"
deploy:
placement:
constraints:
- node.labels.fidesops.app-db-data == true
redis:
image: "redis:6.2.5-alpine"
command: redis-server --requirepass testpassword
environment:
- REDIS_PASSWORD=testpassword
expose:
- 6379
ports:
- "0.0.0.0:6379:6379"
docs:
build:
context: docs/fidesops/
dockerfile: Dockerfile
volumes:
- ./docs/fidesops:/docs
expose:
- 8000
ports:
- "8000:8000"
volumes:
app-db-data: