docs: добавил примеры compose
🚀 Create and publish a Docker image / Detect changes in backend and frontend (push) Successful in 4s
🚀 Create and publish a Docker image / Build & publish backend image (push) Failing after 16s
🚀 Create and publish a Docker image / Update stack on Portainer (push) Has been skipped
🚀 Create and publish a Docker image / Detect changes in backend and frontend (push) Successful in 4s
🚀 Create and publish a Docker image / Build & publish backend image (push) Failing after 16s
🚀 Create and publish a Docker image / Update stack on Portainer (push) Has been skipped
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
services:
|
||||
app:
|
||||
container_name: UniVerse
|
||||
image: git.zetcraft.ru/serega404/universe/backend:main
|
||||
restart: always
|
||||
ports:
|
||||
- "8088:8080"
|
||||
environment:
|
||||
- ASPNETCORE_FORWARDEDHEADERS_ENABLED=true
|
||||
- AzureAd:Instance=https://login.microsoftonline.com/
|
||||
- AzureAd:TenantId=sfedu.ru
|
||||
- AzureAd:ClientId=
|
||||
- AzureAd:ClientSecret=
|
||||
- AzureAd:Domain=sfedu.onmicrosoft.com
|
||||
- AzureAd:CallbackPath=/signin-oidc
|
||||
networks:
|
||||
- backend
|
||||
|
||||
db:
|
||||
image: postgres:18-alpine
|
||||
restart: always
|
||||
ports:
|
||||
- "5432"
|
||||
volumes:
|
||||
- database_data:/var/lib/postgresql
|
||||
environment:
|
||||
- POSTGRES_USER=${POSTGRES_USER}
|
||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||
- POSTGRES_DB=${POSTGRES_DATABASE}
|
||||
networks:
|
||||
- backend
|
||||
healthcheck:
|
||||
test: [ "CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-postgres}" ]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
|
||||
networks:
|
||||
frontend:
|
||||
backend:
|
||||
@@ -0,0 +1,35 @@
|
||||
services:
|
||||
app:
|
||||
container_name: UniVerse
|
||||
build:
|
||||
context: ./backend
|
||||
dockerfile: Dockerfile
|
||||
restart: always
|
||||
ports:
|
||||
- "8088:8080"
|
||||
environment:
|
||||
- ASPNETCORE_FORWARDEDHEADERS_ENABLED=true
|
||||
- AzureAd:Instance=https://login.microsoftonline.com/
|
||||
- AzureAd:TenantId=sfedu.ru
|
||||
- AzureAd:ClientId=
|
||||
- AzureAd:ClientSecret=
|
||||
- AzureAd:Domain=sfedu.onmicrosoft.com
|
||||
- AzureAd:CallbackPath=/signin-oidc
|
||||
|
||||
db:
|
||||
image: postgres:18-alpine
|
||||
restart: always
|
||||
ports:
|
||||
- "5432"
|
||||
volumes:
|
||||
- database_data:/var/lib/postgresql
|
||||
environment:
|
||||
- POSTGRES_USER=${POSTGRES_USER}
|
||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||
- POSTGRES_DB=${POSTGRES_DATABASE}
|
||||
healthcheck:
|
||||
test: [ "CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-postgres}" ]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
Reference in New Issue
Block a user