forked from ethyca/fides
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
152 lines (143 loc) · 3.79 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
services:
fides:
image: ethyca/fides:local
command: uvicorn --host 0.0.0.0 --port 8080 --reload --reload-dir src fides.api.main:app
healthcheck:
test: [ "CMD", "curl", "-f", "http://0.0.0.0:8080/health" ]
interval: 20s
timeout: 5s
retries: 10
ports:
- "8080:8080"
depends_on:
fides-db:
condition: service_healthy
redis:
condition: service_started
expose:
- 8080
env_file:
- .env
environment:
FIDES__CONFIG_PATH: ${FIDES__CONFIG_PATH:-/fides/.fides/fides.toml}
FIDES__CLI__ANALYTICS_ID: ${FIDES__CLI__ANALYTICS_ID-}
FIDES__CLI__SERVER_HOST: "fides"
FIDES__CLI__SERVER_PORT: "8080"
FIDES__DATABASE__SERVER: "fides-db"
FIDES__DEV_MODE: "True"
FIDES__REDIS__ENABLED: "True"
FIDES__USER__ANALYTICS_OPT_OUT: "True"
VAULT_ADDR: ${VAULT_ADDR-}
VAULT_NAMESPACE: ${VAULT_NAMESPACE-}
VAULT_TOKEN: ${VAULT_TOKEN-}
volumes:
- type: bind
source: .
target: /fides
read_only: False
fides-ui:
image: ethyca/fides:local-ui
command: npm run dev
expose:
- 3000
ports:
- "3000:3000"
volumes:
- type: bind
source: .
target: /fides
read_only: False
# do not volume mount over the node_modules
- /fides/clients/admin-ui/node_modules
environment:
- NEXT_PUBLIC_FIDESCTL_API_SERVER=http://fides:8080
fides-pc:
image: ethyca/fides-privacy-center:local
expose:
- 3000
ports:
- "3001:3000"
volumes:
- type: bind
source: ./src/fides/data/test_env/privacy_center_config
target: /app/config
read_only: False
fides-db:
image: postgres:12
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 15s
timeout: 5s
retries: 5
volumes:
- postgres:/var/lib/postgresql/data
expose:
- 5432
ports:
- "5432:5432"
environment:
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "fides"
POSTGRES_DB: "fides"
deploy:
placement:
constraints:
- node.labels.fides.app-db-data == true
docs:
build:
context: .
dockerfile: docs/fides/Dockerfile
volumes:
- ./docs/fides:/docs
- ./:/fides
expose:
- 8000
ports:
- "8000:8000"
environment:
FIDES__DEV_MODE: True
FIDES__CLI__ANALYTICS_ID: ${FIDES__CLI__ANALYTICS_ID-}
# Required security env vars
FIDES__SECURITY__APP_ENCRYPTION_KEY: OLMkv91j8DHiDAULnK5Lxx3kSCov30b3
FIDES__SECURITY__OAUTH_ROOT_CLIENT_ID: fidesadmin
FIDES__SECURITY__OAUTH_ROOT_CLIENT_SECRET: fidesadminsecret
FIDES__SECURITY__DRP_JWT_SECRET: secret
worker:
image: ethyca/fides:local
command: fides worker
depends_on:
redis:
condition: service_started
restart: always
environment:
FIDES__CONFIG_PATH: ${FIDES__CONFIG_PATH:-/fides/.fides/fides.toml}
FIDES__USER__ANALYTICS_OPT_OUT: "True"
volumes:
- type: bind
source: ./
target: /fides
read_only: False
- /fides/src/fides.egg-info
redis:
image: "redis:6.2.5-alpine"
# AUTH option #1: no authentication at all
# command: redis-server
# AUTH option #2: require password
command: redis-server --requirepass redispassword
# AUTH option #3: Redis ACL defined in redis.conf
# command: redis-server /usr/local/etc/redis/redis.conf
expose:
- 6379
ports:
- "0.0.0.0:6379:6379"
volumes:
# Mount a redis.conf file for configuration
# NOTE: Only used by "AUTH option #3" above!
- type: bind
source: ./docker/redis
target: /usr/local/etc/redis
read_only: False
volumes:
postgres: null
networks:
fides_network: