Refactor network_mode configuration for services in compose.yaml

This commit is contained in:
Nikholas Pcenicni
2026-09-16 19:38:21 -04:00
parent b6e2fb0b0a
commit 77b1ce94a4

View File

@@ -9,7 +9,7 @@ services:
- "${FRONTEND_PORT:-8015}:3000" - "${FRONTEND_PORT:-8015}:3000"
depends_on: depends_on:
- server - server
network_mode: host
db: db:
image: postgis/postgis:16-3.5 image: postgis/postgis:16-3.5
container_name: adventurelog-db container_name: adventurelog-db
@@ -17,7 +17,7 @@ services:
env_file: .env env_file: .env
volumes: volumes:
- postgres_data:/var/lib/postgresql/data/ - postgres_data:/var/lib/postgresql/data/
network_mode: host
server: server:
#build: ./backend/ #build: ./backend/
image: ghcr.io/seanmorley15/adventurelog-backend:latest image: ghcr.io/seanmorley15/adventurelog-backend:latest
@@ -30,9 +30,8 @@ services:
- db - db
volumes: volumes:
- adventurelog_media:/code/media/ - adventurelog_media:/code/media/
network_mode: host
volumes: volumes:
postgres_data: postgres_data:
adventurelog_media: adventurelog_media:
network_mode: host