forked from ffddorf/netbox-vault-secrets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
79 lines (76 loc) · 2.03 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
version: '3.8'
services:
vault:
image: vault:1.9.0
cap_add:
- IPC_LOCK
ports:
- 8082:8200
netbox:
image: netboxcommunity/netbox:v3.0.10
ports:
- 8081:8080
depends_on:
- postgres
- redis
command:
- /opt/netbox/plugin-entrypoint.sh
- /opt/netbox/launch-netbox.sh
volumes:
- ./:/src
- ./devel/plugins.py:/etc/netbox/config/plugins.py
- ./devel/entrypoint.sh:/opt/netbox/plugin-entrypoint.sh
environment:
NETBOX_VAULT_DEVELOP: "True"
CORS_ORIGIN_ALLOW_ALL: "True"
DB_HOST: postgres
DB_NAME: netbox
DB_PASSWORD: J5brHrAXFLQSif0K
DB_USER: netbox
REDIS_CACHE_DATABASE: "1"
REDIS_CACHE_HOST: redis-cache
REDIS_CACHE_PASSWORD: ieGhaez1aihah1
REDIS_CACHE_SSL: "false"
REDIS_DATABASE: "0"
REDIS_HOST: redis
REDIS_PASSWORD: H733Kdjndks81
REDIS_SSL: "false"
SECRET_KEY: r8OwDznj!!dci#P9ghmRfdu1Ysxm0AiPeDCQhKE+N_rClfWNj
SKIP_SUPERUSER: "false"
SUPERUSER_API_TOKEN: 0123456789abcdef0123456789abcdef01234567
SUPERUSER_EMAIL: [email protected]
SUPERUSER_NAME: admin
SUPERUSER_PASSWORD: admin
healthcheck:
test: curl -f http://localhost:8080
postgres:
image: postgres:13-alpine
volumes:
- netbox-postgres-data:/var/lib/postgresql/data
environment:
POSTGRES_DB: netbox
POSTGRES_PASSWORD: J5brHrAXFLQSif0K
POSTGRES_USER: netbox
healthcheck:
test: pg_isready
redis: &redis
image: redis:6-alpine
command:
- sh
- -c # this is to evaluate the $REDIS_PASSWORD from the env
- redis-server --appendonly yes --requirepass $$REDIS_PASSWORD ## $$ because of docker-compose
volumes:
- netbox-redis-data:/data
environment:
REDIS_PASSWORD: H733Kdjndks81
healthcheck:
test: ["CMD", "redis-cli", "ping"]
redis-cache:
<<: *redis
environment:
REDIS_PASSWORD: ieGhaez1aihah1
volumes:
netbox-postgres-data:
driver: local
netbox-redis-data:
driver: local