first try

This commit is contained in:
2024-05-30 02:28:16 +00:00
parent 0c99ff8b56
commit 3423df950a
2 changed files with 53 additions and 8 deletions

View File

@@ -2,7 +2,7 @@ services:
netbox: &netbox
image: docker.io/netboxcommunity/netbox:${VERSION-v4.0-2.9.1}
depends_on:
- postgres
# - postgres
- redis
- redis-cache
env_file: env/netbox.env
@@ -45,11 +45,11 @@ services:
test: "ps -aux | grep -v grep | grep -q housekeeping || exit 1"
# postgres
postgres:
image: docker.io/postgres:16-alpine
env_file: env/postgres.env
volumes:
- netbox-postgres-data:/var/lib/postgresql/data
# postgres:
# image: docker.io/postgres:16-alpine
# env_file: env/postgres.env
# volumes:
# - netbox-postgres-data:/var/lib/postgresql/data
# redis
redis:
@@ -74,8 +74,8 @@ services:
volumes:
netbox-media-files:
driver: local
netbox-postgres-data:
driver: local
# netbox-postgres-data:
# driver: local
netbox-redis-cache-data:
driver: local
netbox-redis-data: