update compose

This commit is contained in:
MaKarin
2026-04-04 19:49:11 +03:00
parent 89fa65d6c6
commit fed445df7a

View File

@@ -1,7 +1,7 @@
services: services:
postgres: postgres:
image: postgres:16 image: postgres:16
container_name: toir-light-postgres container_name: toir-postgres
restart: unless-stopped restart: unless-stopped
environment: environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres} POSTGRES_USER: ${POSTGRES_USER:-postgres}
@@ -20,13 +20,13 @@ services:
volumes: volumes:
- postgres-data:/var/lib/postgresql/data - postgres-data:/var/lib/postgresql/data
networks: networks:
- toir-light - toir
server: server:
build: build:
context: ./server context: ./server
dockerfile: Dockerfile dockerfile: Dockerfile
container_name: toir-light-server container_name: toir-server
restart: unless-stopped restart: unless-stopped
depends_on: depends_on:
postgres: postgres:
@@ -53,7 +53,7 @@ services:
expose: expose:
- "3000" - "3000"
networks: networks:
- toir-light - toir
- proxy - proxy
client: client:
@@ -65,7 +65,7 @@ services:
VITE_KEYCLOAK_URL: ${VITE_KEYCLOAK_URL:-https://sso.greact.ru} VITE_KEYCLOAK_URL: ${VITE_KEYCLOAK_URL:-https://sso.greact.ru}
VITE_KEYCLOAK_REALM: ${VITE_KEYCLOAK_REALM:-toir} VITE_KEYCLOAK_REALM: ${VITE_KEYCLOAK_REALM:-toir}
VITE_KEYCLOAK_CLIENT_ID: ${VITE_KEYCLOAK_CLIENT_ID:-toir-frontend} VITE_KEYCLOAK_CLIENT_ID: ${VITE_KEYCLOAK_CLIENT_ID:-toir-frontend}
container_name: toir-light-client container_name: toir-client
restart: unless-stopped restart: unless-stopped
depends_on: depends_on:
server: server:
@@ -81,14 +81,14 @@ services:
expose: expose:
- "80" - "80"
networks: networks:
- toir-light - toir
- proxy - proxy
volumes: volumes:
postgres-data: postgres-data:
networks: networks:
toir-light: toir:
driver: bridge driver: bridge
proxy: proxy:
external: true external: true