mirror of
https://github.com/Noratrieb/vps.git
synced 2026-01-14 16:55:00 +01:00
isolate networks
This commit is contained in:
parent
226e5a40b0
commit
71949b7ea0
1 changed files with 11 additions and 9 deletions
|
|
@ -43,11 +43,11 @@ services:
|
|||
container_name: hugo-chat-db
|
||||
image: "postgres:latest"
|
||||
restart: always
|
||||
# no ports bound, accessed via the internal network
|
||||
# no ports bound, accessed via the hugo-chat network
|
||||
environment:
|
||||
POSTGRES_PASSWORD: "${HUGO_CHAT_DB_PASSWORD}"
|
||||
networks:
|
||||
- internal
|
||||
- hugo-chat
|
||||
hugo_chat_server:
|
||||
container_name: hugo-chat-server
|
||||
image: "docker.nilstrieb.dev/hugo-chat-server:63bd1922"
|
||||
|
|
@ -57,7 +57,7 @@ services:
|
|||
SPRING_DATASOURCE_URL: "jdbc:postgresql://hugo-chat-db:5432/postgres"
|
||||
SPRING_DATASOURCE_PASSWORD: "${HUGO_CHAT_DB_PASSWORD}"
|
||||
networks:
|
||||
- internal
|
||||
- hugo-chat
|
||||
hugo_chat_client:
|
||||
container_name: hugo-chat-client
|
||||
image: "docker.nilstrieb.dev/hugo-chat-client:63bd1922"
|
||||
|
|
@ -74,7 +74,7 @@ services:
|
|||
env_file:
|
||||
- "/apps/karin-bot/.env"
|
||||
networks:
|
||||
- internal
|
||||
- karin-bot
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
|
|
@ -92,7 +92,7 @@ services:
|
|||
RUST_LOG: INFO
|
||||
PRETTY: "false"
|
||||
networks:
|
||||
- internal
|
||||
- karin-bot
|
||||
#### Cors School
|
||||
cors_school_db:
|
||||
container_name: cors-school-db
|
||||
|
|
@ -104,7 +104,7 @@ services:
|
|||
environment:
|
||||
POSTGRES_DB: davinci
|
||||
networks:
|
||||
- internal
|
||||
- cors-school
|
||||
cors_school_server:
|
||||
container_name: cors-school-server
|
||||
image: "docker.nilstrieb.dev/cors-school-server:54e0ffa7"
|
||||
|
|
@ -116,7 +116,7 @@ services:
|
|||
environment:
|
||||
RUST_LOG: info
|
||||
networks:
|
||||
- internal
|
||||
- cors-school
|
||||
ports:
|
||||
- "5003:8080"
|
||||
cors_school_client:
|
||||
|
|
@ -138,7 +138,7 @@ services:
|
|||
RUST_LOG: info
|
||||
BACKEND_URL: "http://cors-school-server:8080/api"
|
||||
networks:
|
||||
- internal
|
||||
- cors-school
|
||||
minecraft_server:
|
||||
container_name: minecraft-server
|
||||
image: itzg/minecraft-server:latest
|
||||
|
|
@ -161,4 +161,6 @@ services:
|
|||
volumes:
|
||||
- /apps/minecraft/server:/data
|
||||
networks:
|
||||
internal:
|
||||
cors-school:
|
||||
hugo-chat:
|
||||
karin-bot:
|
||||
Loading…
Add table
Add a link
Reference in a new issue