-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (45 loc) · 1.09 KB
/
Copy pathdocker-compose.yml
File metadata and controls
49 lines (45 loc) · 1.09 KB
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
services:
worker: &netbox
build:
context: .
dockerfile: ./Dockerfile
args:
NETBOX_VERSION: latest
command: sh -c "python manage.py rqworker"
env_file: ./env/netbox.env
depends_on:
netbox:
condition: service_healthy
volumes:
- ./configuration/configuration.py:/opt/netbox/netbox/netbox/configuration.py
- ./plugins/:/plugins/
netbox:
<<: *netbox
command: >
sh -c "python manage.py runserver 0.0.0.0:8000"
ports:
- "8000:8000"
healthcheck:
test: curl -f http://localhost:8000/login/ || exit 1
start_period: 90s
timeout: 3s
interval: 15s
depends_on:
- postgres
- redis
postgres:
image: postgres:14-alpine
env_file: ./env/postgres.env
volumes:
- pgdata-data:/var/lib/postgresql/data
redis:
image: redis:7-alpine
command: sh -c "redis-server --appendonly yes --requirepass redis"
env_file: ./env/redis.env
volumes:
- redis-data:/data
volumes:
pgdata-data:
driver: local
redis-data:
driver: local # driver: local