-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml.example
126 lines (122 loc) · 3.55 KB
/
docker-compose.yml.example
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
version: '3.4'
services:
netbox: &netbox
image: netbox
depends_on:
- postgres
- redis
- redis-cache
- netbox-worker
environment:
CORS_ORIGIN_ALLOW_ALL: 'true'
# Database
DB_HOST: postgres
DB_NAME: netbox
DB_USER: netbox
DB_PASSWORD: J5brHrAXFLQSif0K
# Email
EMAIL_FROM: [email protected]
EMAIL_PASSWORD:
EMAIL_PORT: '25'
EMAIL_SERVER: localhost
EMAIL_SSL_CERTFILE:
EMAIL_SSL_KEYFILE:
EMAIL_TIMEOUT: '5'
EMAIL_USERNAME: netbox
# EMAIL_USE_SSL and EMAIL_USE_TLS are mutually exclusive, i.e. they can't both be `true`!
EMAIL_USE_SSL: 'false'
EMAIL_USE_TLS: 'false'
GRAPHQL_ENABLED: 'true'
HOUSEKEEPING_INTERVAL: '86400'
MAX_PAGE_SIZE: '1000'
MEDIA_ROOT: /opt/netbox/netbox/media
METRICS_ENABLED: 'false'
NAPALM_PASSWORD:
NAPALM_TIMEOUT: '10'
NAPALM_USERNAME:
REDIS_CACHE_DATABASE: '1'
REDIS_CACHE_HOST: redis-cache
REDIS_CACHE_INSECURE_SKIP_TLS_VERIFY: 'false'
REDIS_CACHE_PASSWORD: t4Ph722qJ5QHeQ1qfu36
REDIS_CACHE_SSL: 'false'
REDIS_DATABASE: '0'
REDIS_HOST: redis
REDIS_INSECURE_SKIP_TLS_VERIFY: 'false'
REDIS_PASSWORD: H733Kdjndks81
REDIS_SSL: 'false'
RELEASE_CHECK_URL: https://api.github.com/repos/netbox-community/netbox/releases
SECRET_KEY: r8OwDznj!!dci#P9ghmRfdu1Ysxm0AiPeDCQhKE+N_rClfWNj
SKIP_STARTUP_SCRIPTS: 'false'
SKIP_SUPERUSER: 'false'
SUPERUSER_API_TOKEN: 0123456789abcdef0123456789abcdef01234567
SUPERUSER_EMAIL: [email protected]
SUPERUSER_NAME: admin
SUPERUSER_PASSWORD: admin
WEBHOOKS_ENABLED: 'true'
SKIP_COLLECT_STATIC: 'false'
user: 'unit:root'
volumes:
- ./netbox/startup_scripts:/opt/netbox/startup_scripts:z,ro
- ./netbox/initializers:/opt/netbox/initializers:z,ro
- ./netbox/configuration:/etc/netbox/config:z,ro
- ./netbox/reports:/etc/netbox/reports:z,ro
- ./netbox/scripts:/etc/netbox/scripts:z,ro
- netbox-media-files:/opt/netbox/netbox/media:z
netbox-worker:
<<: *netbox
depends_on:
- redis
- postgres
command:
- /opt/netbox/venv/bin/python
- /opt/netbox/netbox/manage.py
- rqworker
netbox-housekeeping:
<<: *netbox
depends_on:
- redis
- postgres
command:
- /opt/netbox/housekeeping.sh
# postgres
postgres:
image: postgres:14-alpine
environment:
POSTGRES_DB: netbox
POSTGRES_PASSWORD: J5brHrAXFLQSif0K
POSTGRES_USER: netbox
volumes:
- netbox-postgres-data:/var/lib/postgresql/data
# 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
environment:
REDIS_PASSWORD: H733Kdjndks81
volumes:
- netbox-redis-data:/data
redis-cache:
image: redis:6-alpine
command:
- sh
- -c # this is to evaluate the $REDIS_PASSWORD from the env
- redis-server --requirepass $$REDIS_PASSWORD ## $$ because of docker-compose
environment:
REDIS_PASSWORD: t4Ph722qJ5QHeQ1qfu36
# nginx
nginx:
image: linuxserver/nginx:latest
volumes:
- ./nginx:/config/nginx/site-confs
ports:
- 8080:80
volumes:
netbox-media-files:
driver: local
netbox-postgres-data:
driver: local
netbox-redis-data:
driver: local