This repository has been archived by the owner on Nov 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
docker-compose.yml
89 lines (83 loc) · 1.99 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
services:
webserver:
image: ethyca/fidesops:local
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=True
- FIDESOPS__LOG_PII=${FIDESOPS__LOG_PII}
- FIDESOPS__HOT_RELOAD=${FIDESOPS__HOT_RELOAD}
- FIDESOPS__ROOT_USER__ANALYTICS_ID=${FIDESOPS__ROOT_USER__ANALYTICS_ID}
- VAULT_ADDR
- VAULT_NAMESPACE
- VAULT_TOKEN
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"
worker:
image: ethyca/fidesops:local
command: fidesops worker
depends_on:
redis:
condition: service_started
restart: always
volumes:
- type: bind
source: ./
target: /fidesops
read_only: False
- /fidesops/src/fidesops.egg-info
environment:
- FIDESOPS__ROOT_USER__ANALYTICS_ID=${FIDESOPS__ROOT_USER__ANALYTICS_ID}
docs:
build:
context: docs/fidesops/
dockerfile: Dockerfile.docs
volumes:
- ./docs/fidesops:/docs
expose:
- 8000
ports:
- "8000:8000"
volumes:
app-db-data: