Refactor docker-compose.yml to remove unnecessary network configurations

This commit is contained in:
2024-05-26 21:38:13 +08:00
parent 2476dc0a7e
commit dcc9e1b7a7
2 changed files with 211 additions and 13 deletions
+22 -13
View File
@@ -10,10 +10,20 @@ x-environment: &default-environment
STREAMLIT_BAI_SERVER_PORT: "8502"
volumes:
production_traefik: {}
portainer_data: {}
ghost_content: {}
ghost_mysql: {}
jellyfin_config: {}
jellyfin_cache: {}
kestra_data: {}
minio_data: {}
neo4j_data: {}
neo4j_logs: {}
pgadmin: {}
privatebin_data: {}
production_traefik: {}
postgres_data: {}
portainer_data: {}
thelounge_data: {}
services:
postgres:
@@ -27,7 +37,7 @@ services:
LANG: en_US.utf8
TZ: Asia/Singapore
volumes:
- ./postgres-data:/var/lib/postgresql/data
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
interval: 30s
@@ -52,7 +62,7 @@ services:
TZ: Asia/Singapore
user: "1000:1000"
volumes:
- ./pgadmin:/var/lib/pgadmin
- pgadmin:/var/lib/pgadmin
restart: unless-stopped
depends_on:
- postgres
@@ -98,7 +108,7 @@ services:
timeout: 5s
retries: 5
volumes:
- "./minio-data:/data"
- minio_data:/data
expose:
- 9000
- 9001
@@ -126,8 +136,8 @@ services:
depends_on:
- traefik
volumes:
- ./neo4j/data:/data
- ./neo4j/logs:/logs
- neo4j_data:/data
- neo4j_logs:/logs
# Expose ports
expose:
- 7474
@@ -191,7 +201,7 @@ services:
path: /tmp/kestra-wd/tmp
url: http://kestra.furyhawk.lol/
volumes:
- ./kestra-data:/app/storage
- kestra_data:/app/storage
- /var/run/docker.sock:/var/run/docker.sock
- /tmp/kestra-wd:/tmp/kestra-wd
depends_on:
@@ -201,7 +211,6 @@ services:
- "8081"
networks:
- net
- default
cheatsheets-app:
image: furyhawk/cheatsheets:${CHEATSHEETSTAG:-latest}
@@ -268,8 +277,8 @@ services:
container_name: jellyfin
user: 1000:1000
volumes:
- ./jellyfin-config:/config
- ./jellyfin-cache:/cache
- jellyfin_config:/config
- jellyfin_cache:/cache
- type: bind
source: ~/media
target: /media
@@ -299,7 +308,7 @@ services:
read_only: true
user: "1000:1000"
volumes:
- './privatebin-data:/srv/data' # data volume for pastes allows pastes
- privatebin_data:/srv/data # data volume for pastes allows pastes
# to persist after container stop or restart
- './config/conf.php:/srv/cfg/conf.php:ro' # second volume for custom configuration file
expose:
@@ -336,7 +345,7 @@ services:
- 9000
restart: unless-stopped
volumes:
- ~/.thelounge:/var/opt/thelounge # bind lounge config from the host's file system
- thelounge_data:/var/opt/thelounge # bind lounge config from the host's file system
networks:
- net