Skip to content

Commit

Permalink
refactor: move docker conf
Browse files Browse the repository at this point in the history
  • Loading branch information
romain-neil committed Oct 29, 2024
1 parent 5f68f2b commit d4ad0ec
Show file tree
Hide file tree
Showing 11 changed files with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ services:
- postgres
- redis
- redis-cache
env_file: env/netbox.env
env_file: docker/env/netbox.env
user: 'unit:root'
healthcheck:
start_period: 60s
timeout: 3s
interval: 15s
test: "curl -f http://localhost:8080/login/ || exit 1"
volumes:
- ./configuration:/etc/netbox/config:z,ro
- ./docker/configuration:/etc/netbox/config:z,ro
- netbox-media-files:/opt/netbox/netbox/media:rw
- netbox-reports-files:/opt/netbox/netbox/reports:rw
- netbox-scripts-files:/opt/netbox/netbox/scripts:rw
Expand Down Expand Up @@ -49,7 +49,7 @@ services:
# postgres
postgres:
image: docker.io/postgres:16-alpine
env_file: env/postgres.env
env_file: docker/env/postgres.env
volumes:
- netbox-postgres-data:/var/lib/postgresql/data

Expand All @@ -60,7 +60,7 @@ services:
- sh
- -c # this is to evaluate the $REDIS_PASSWORD from the env
- redis-server --appendonly yes --requirepass $$REDIS_PASSWORD ## $$ because of docker-compose
env_file: env/redis.env
env_file: docker/env/redis.env
volumes:
- netbox-redis-data:/data
redis-cache:
Expand All @@ -69,7 +69,7 @@ services:
- sh
- -c # this is to evaluate the $REDIS_PASSWORD from the env
- redis-server --requirepass $$REDIS_PASSWORD ## $$ because of docker-compose
env_file: env/redis-cache.env
env_file: docker/env/redis-cache.env
volumes:
- netbox-redis-cache-data:/data

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit d4ad0ec

Please sign in to comment.