-
Notifications
You must be signed in to change notification settings - Fork 74
/
docker-compose.child-env.yml
78 lines (74 loc) · 2.03 KB
/
docker-compose.child-env.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
services:
fides-child:
image: ethyca/fides:local
command: uvicorn --host 0.0.0.0 --port 8080 --reload --reload-dir src --reload-dir data --reload-include='*.yml' fides.api.main:app
healthcheck:
test: [ "CMD", "curl", "-f", "http://0.0.0.0:8080/health" ]
interval: 20s
timeout: 5s
retries: 10
ports:
- "8081:8080"
depends_on:
fides-db:
condition: service_healthy
redis-child:
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-child"
FIDES__CLI__SERVER_PORT: "8080"
FIDES__DATABASE__SERVER: "fides-db"
FIDES__DATABASE__DB: "child_test_db"
FIDES__DATABASE__TEST_DB: "child_test_db"
FIDES__DEV_MODE: "True"
FIDES__REDIS__HOST: "redis-child"
FIDES__TEST_MODE: "True"
FIDES__USER__ANALYTICS_OPT_OUT: "True"
VAULT_ADDR: ${VAULT_ADDR:-}
VAULT_NAMESPACE: ${VAULT_NAMESPACE:-}
VAULT_TOKEN: ${VAULT_TOKEN:-}
FIDES__SECURITY__PARENT_SERVER_USERNAME: parent
FIDES__SECURITY__PARENT_SERVER_PASSWORD: parentpassword1!
volumes:
- type: bind
source: .
target: /fides
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
redis-child:
image: "redis:6.2.5-alpine"
command: redis-server --requirepass redispassword
expose:
- 6379
ports:
- "0.0.0.0:6380:6379"
volumes:
postgres: null
networks:
fides_network: