Refactor docker-compose.yml to update URLs and remove unnecessary network configurations
This commit is contained in:
@@ -557,7 +557,7 @@ http:
|
|||||||
streamlit_fin_app:
|
streamlit_fin_app:
|
||||||
loadBalancer:
|
loadBalancer:
|
||||||
servers:
|
servers:
|
||||||
- url: http://streamlit_fin_app:8501
|
- url: http://streamlit-fin:8501
|
||||||
emqx-mqtt-socket:
|
emqx-mqtt-socket:
|
||||||
loadBalancer:
|
loadBalancer:
|
||||||
servers:
|
servers:
|
||||||
|
|||||||
+67
-79
@@ -50,27 +50,26 @@ services:
|
|||||||
- net
|
- net
|
||||||
- default
|
- default
|
||||||
|
|
||||||
adminer:
|
api_server:
|
||||||
image: adminer
|
image: furyhawk/listen:latest
|
||||||
container_name: adminer
|
container_name: api_server
|
||||||
environment:
|
restart: always
|
||||||
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL}
|
|
||||||
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD}
|
|
||||||
PGID: 1000
|
|
||||||
PUID: 1000
|
|
||||||
PATH: "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
|
||||||
PYTHONPATH: "/pgadmin4"
|
|
||||||
TZ: Asia/Singapore
|
|
||||||
user: "1000:1000"
|
|
||||||
volumes:
|
|
||||||
- pgadmin:/var/lib/pgadmin
|
|
||||||
restart: unless-stopped
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
- postgres
|
||||||
expose:
|
environment:
|
||||||
- 80
|
DATABASE__HOSTNAME: ${DATABASE__HOSTNAME}
|
||||||
|
DATABASE__USERNAME: ${POSTGRES_USER}
|
||||||
|
DATABASE__PASSWORD: ${POSTGRES_PASSWORD}
|
||||||
|
DATABASE__PORT: ${DATABASE__PORT}
|
||||||
|
DATABASE__DB: ${DATABASE__DB}
|
||||||
|
SECURITY__JWT_SECRET_KEY: ${SECURITY__JWT_SECRET_KEY}
|
||||||
|
SECURITY__BACKEND_CORS_ORIGINS: ${SECURITY__BACKEND_CORS_ORIGINS}
|
||||||
|
SECURITY__ALLOWED_HOSTS: ${SECURITY__ALLOWED_HOSTS}
|
||||||
|
ports:
|
||||||
|
- "8000:8000"
|
||||||
networks:
|
networks:
|
||||||
- net
|
- net
|
||||||
|
- default
|
||||||
|
|
||||||
osrm-backend:
|
osrm-backend:
|
||||||
environment:
|
environment:
|
||||||
@@ -147,23 +146,20 @@ services:
|
|||||||
- net
|
- net
|
||||||
- default
|
- default
|
||||||
|
|
||||||
api_server:
|
syncthing:
|
||||||
image: furyhawk/listen:latest
|
image: syncthing/syncthing
|
||||||
container_name: api_server
|
container_name: syncthing
|
||||||
restart: always
|
|
||||||
depends_on:
|
|
||||||
- postgres
|
|
||||||
environment:
|
environment:
|
||||||
DATABASE__HOSTNAME: ${DATABASE__HOSTNAME}
|
- PUID=1000
|
||||||
DATABASE__USERNAME: ${POSTGRES_USER}
|
- PGID=1000
|
||||||
DATABASE__PASSWORD: ${POSTGRES_PASSWORD}
|
restart: unless-stopped
|
||||||
DATABASE__PORT: ${DATABASE__PORT}
|
volumes:
|
||||||
DATABASE__DB: ${DATABASE__DB}
|
- ~/st-sync:/var/syncthing
|
||||||
SECURITY__JWT_SECRET_KEY: ${SECURITY__JWT_SECRET_KEY}
|
|
||||||
SECURITY__BACKEND_CORS_ORIGINS: ${SECURITY__BACKEND_CORS_ORIGINS}
|
|
||||||
SECURITY__ALLOWED_HOSTS: ${SECURITY__ALLOWED_HOSTS}
|
|
||||||
ports:
|
ports:
|
||||||
- "8000:8000"
|
- "8384:8384" # Web UI
|
||||||
|
- "22000:22000/tcp" # TCP file transfers
|
||||||
|
- "22000:22000/udp" # QUIC file transfers
|
||||||
|
- "21027:21027/udp" # Receive local discovery broadcasts
|
||||||
networks:
|
networks:
|
||||||
- net
|
- net
|
||||||
- default
|
- default
|
||||||
@@ -213,15 +209,51 @@ services:
|
|||||||
# networks:
|
# networks:
|
||||||
# - net
|
# - net
|
||||||
|
|
||||||
|
adminer:
|
||||||
|
image: adminer
|
||||||
|
environment:
|
||||||
|
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL}
|
||||||
|
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD}
|
||||||
|
PGID: 1000
|
||||||
|
PUID: 1000
|
||||||
|
PATH: "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
||||||
|
PYTHONPATH: "/pgadmin4"
|
||||||
|
TZ: Asia/Singapore
|
||||||
|
user: "1000:1000"
|
||||||
|
volumes:
|
||||||
|
- pgadmin:/var/lib/pgadmin
|
||||||
|
restart: unless-stopped
|
||||||
|
depends_on:
|
||||||
|
- postgres
|
||||||
|
expose:
|
||||||
|
- 80
|
||||||
|
networks:
|
||||||
|
- net
|
||||||
|
|
||||||
cheatsheets-app:
|
cheatsheets-app:
|
||||||
image: furyhawk/cheatsheets:${CHEATSHEETSTAG:-latest}
|
image: furyhawk/cheatsheets:${CHEATSHEETSTAG:-latest}
|
||||||
container_name: cheatsheets_app
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
expose:
|
expose:
|
||||||
- 80
|
- 80
|
||||||
networks:
|
networks:
|
||||||
- net
|
- net
|
||||||
|
|
||||||
|
ghost-db:
|
||||||
|
image: mysql:8
|
||||||
|
container_name: ghost-db
|
||||||
|
security_opt:
|
||||||
|
- seccomp:unconfined
|
||||||
|
restart: always
|
||||||
|
command: --mysql-native-password=ON
|
||||||
|
environment:
|
||||||
|
MYSQL_ROOT_PASSWORD: ${POSTGRES_PASSWORD}
|
||||||
|
volumes:
|
||||||
|
- ghost_mysql:/var/lib/mysql
|
||||||
|
expose:
|
||||||
|
- 3306
|
||||||
|
networks:
|
||||||
|
- net
|
||||||
|
|
||||||
ghost-server:
|
ghost-server:
|
||||||
image: ghost
|
image: ghost
|
||||||
container_name: ghost_server
|
container_name: ghost_server
|
||||||
@@ -246,25 +278,8 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- net
|
- net
|
||||||
|
|
||||||
ghost-db:
|
|
||||||
image: mysql:8
|
|
||||||
container_name: ghost-db
|
|
||||||
security_opt:
|
|
||||||
- seccomp:unconfined
|
|
||||||
restart: always
|
|
||||||
command: --mysql-native-password=ON
|
|
||||||
environment:
|
|
||||||
MYSQL_ROOT_PASSWORD: ${POSTGRES_PASSWORD}
|
|
||||||
volumes:
|
|
||||||
- ghost_mysql:/var/lib/mysql
|
|
||||||
expose:
|
|
||||||
- 3306
|
|
||||||
networks:
|
|
||||||
- net
|
|
||||||
|
|
||||||
heynote-app:
|
heynote-app:
|
||||||
image: furyhawk/heynote:${HEYNOTETAG:-latest}
|
image: furyhawk/heynote:${HEYNOTETAG:-latest}
|
||||||
container_name: heynote_app
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
NODE_ENV: production
|
NODE_ENV: production
|
||||||
@@ -275,7 +290,6 @@ services:
|
|||||||
|
|
||||||
jellyfin:
|
jellyfin:
|
||||||
image: jellyfin/jellyfin
|
image: jellyfin/jellyfin
|
||||||
container_name: jellyfin
|
|
||||||
user: 1000:1000
|
user: 1000:1000
|
||||||
volumes:
|
volumes:
|
||||||
- jellyfin_config:/config
|
- jellyfin_config:/config
|
||||||
@@ -338,11 +352,11 @@ services:
|
|||||||
|
|
||||||
thelounge:
|
thelounge:
|
||||||
image: ghcr.io/thelounge/thelounge:latest
|
image: ghcr.io/thelounge/thelounge:latest
|
||||||
expose:
|
|
||||||
- 9000
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- thelounge_data:/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
|
||||||
|
expose:
|
||||||
|
- 9000
|
||||||
networks:
|
networks:
|
||||||
- net
|
- net
|
||||||
|
|
||||||
@@ -354,12 +368,6 @@ services:
|
|||||||
command: streamlit run --server.port=$STREAMLIT_BAI_SERVER_PORT --server.address=0.0.0.0 --server.baseUrlPath=$BAI_LOCATION src/app.py
|
command: streamlit run --server.port=$STREAMLIT_BAI_SERVER_PORT --server.address=0.0.0.0 --server.baseUrlPath=$BAI_LOCATION src/app.py
|
||||||
volumes:
|
volumes:
|
||||||
- bai_cache:/app/cache
|
- bai_cache:/app/cache
|
||||||
# - type: bind
|
|
||||||
# source: ${PWD}/cache/bar_cache.sqlite
|
|
||||||
# target: /app/bar_cache.sqlite
|
|
||||||
# - type: bind
|
|
||||||
# source: ${PWD}/cache/short_cache.sqlite
|
|
||||||
# target: /app/short_cache.sqlite
|
|
||||||
expose:
|
expose:
|
||||||
- ${STREAMLIT_BAI_SERVER_PORT}
|
- ${STREAMLIT_BAI_SERVER_PORT}
|
||||||
networks:
|
networks:
|
||||||
@@ -369,34 +377,14 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
<<: *default-environment
|
<<: *default-environment
|
||||||
image: furyhawk/llama3toolsfin:main
|
image: furyhawk/llama3toolsfin:main
|
||||||
container_name: streamlit_fin_app
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
expose:
|
expose:
|
||||||
- ${STREAMLIT_FIN_SERVER_PORT}
|
- ${STREAMLIT_FIN_SERVER_PORT}
|
||||||
networks:
|
networks:
|
||||||
- net
|
- net
|
||||||
|
|
||||||
syncthing:
|
|
||||||
image: syncthing/syncthing
|
|
||||||
container_name: syncthing
|
|
||||||
environment:
|
|
||||||
- PUID=1000
|
|
||||||
- PGID=1000
|
|
||||||
restart: unless-stopped
|
|
||||||
volumes:
|
|
||||||
- ~/st-sync:/var/syncthing
|
|
||||||
ports:
|
|
||||||
- "8384:8384" # Web UI
|
|
||||||
- "22000:22000/tcp" # TCP file transfers
|
|
||||||
- "22000:22000/udp" # QUIC file transfers
|
|
||||||
- "21027:21027/udp" # Receive local discovery broadcasts
|
|
||||||
networks:
|
|
||||||
- net
|
|
||||||
- default
|
|
||||||
|
|
||||||
site_server:
|
site_server:
|
||||||
image: nginx:alpine
|
image: nginx:alpine
|
||||||
container_name: site_server
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- ./site:/usr/share/nginx/html:ro
|
- ./site:/usr/share/nginx/html:ro
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ services:
|
|||||||
context: .
|
context: .
|
||||||
dockerfile: ./compose/streamlit-fin/Dockerfile
|
dockerfile: ./compose/streamlit-fin/Dockerfile
|
||||||
image: streamlit_fin_local
|
image: streamlit_fin_local
|
||||||
container_name: streamlit_fin_app
|
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- 8501:8501
|
- 8501:8501
|
||||||
|
|||||||
Reference in New Issue
Block a user