ci: сборка, деплой и стенды в Gitea Actions
Workflows CI, деплоя на прод и очистки стендов веток, docker-compose для прода и стейджинга, публикация документации.
This commit is contained in:
1 parent
80808a1e75
commit
7ffba57a13
6 files changed
+483
No files matched your search
@@ -0,0 +1,55 @@
|
||||
services:
|
||||
web:
|
||||
container_name: geo-platform_web
|
||||
image: git.jt4d.ru/geo-helm/geo-platform/web:${VERSION}
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- '80:80'
|
||||
- '443:443'
|
||||
volumes:
|
||||
- caddy_data:/data
|
||||
- caddy_config:/config
|
||||
|
||||
api:
|
||||
container_name: geo-platform_api
|
||||
image: git.jt4d.ru/geo-helm/geo-platform/api:${VERSION}
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
LOG_LEVEL: ${LOG_LEVEL:-warn}
|
||||
|
||||
POSTGRES_HOST: postgres
|
||||
POSTGRES_PORT: 5432
|
||||
POSTGRES_USER: aigeo_app
|
||||
POSTGRES_PASSWORD: ${POSTGRES_APP_PASSWORD}
|
||||
POSTGRES_DB: aigeo
|
||||
|
||||
postgres:
|
||||
container_name: geo-platform_postgres
|
||||
image: postgres:16
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
POSTGRES_DB: ${POSTGRES_DB:-aigeo}
|
||||
POSTGRES_USER: ${POSTGRES_USER:-postgres}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
|
||||
POSTGRES_APP_USER: ${POSTGRES_APP_USER:-aigeo_app}
|
||||
POSTGRES_APP_PASSWORD: ${POSTGRES_APP_PASSWORD:-postgres}
|
||||
volumes:
|
||||
- pg_data:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ['CMD-SHELL', 'pg_isready -U ${POSTGRES_USER:-postgres}']
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
volumes:
|
||||
pg_data:
|
||||
caddy_data:
|
||||
caddy_config:
|
||||
Reference in new issue
Block a user