initial commit
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
services:
|
||||
netbox:
|
||||
image: localhost/netbox-plugin-dns:latest
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./netbox.Containerfile
|
||||
depends_on:
|
||||
- postgres
|
||||
- redis
|
||||
- redis-cache
|
||||
env_file: env/netbox.env
|
||||
user: 'unit:root'
|
||||
healthcheck:
|
||||
start_period: 60s
|
||||
timeout: 3s
|
||||
interval: 15s
|
||||
test: "curl -f http://localhost:8080/api/ || exit 1"
|
||||
ports:
|
||||
- "9999:8080"
|
||||
|
||||
postgres:
|
||||
image: docker.io/library/postgres:16
|
||||
env_file: env/postgres.env
|
||||
|
||||
redis:
|
||||
image: docker.io/library/redis:7
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- redis-server --appendonly yes --requirepass $$REDIS_PASSWORD
|
||||
env_file: env/redis.env
|
||||
|
||||
redis-cache:
|
||||
image: docker.io/library/redis:7
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- redis-server --requirepass $$REDIS_PASSWORD
|
||||
env_file: env/redis-cache.env
|
||||
Reference in New Issue
Block a user