67 lines
2.5 KiB
YAML
67 lines
2.5 KiB
YAML
services:
|
|
app:
|
|
image: 'umbyte-landing:latest'
|
|
container_name: app-lwpkqvcz4vvmw93elb7s8mgh
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- postgres
|
|
expose:
|
|
- '80'
|
|
networks:
|
|
coolify:
|
|
aliases:
|
|
- app-lwpkqvcz4vvmw93elb7s8mgh
|
|
environment:
|
|
NODE_ENV: production
|
|
PORT: 3000
|
|
DB_HOST: postgres-lwpkqvcz4vvmw93elb7s8mgh
|
|
DB_PORT: 5432
|
|
DB_USER: umbyte
|
|
DB_PASSWORD: 5816e45c1052d6b0b2c7f9be3103069d
|
|
DB_NAME: umbyte
|
|
JWT_SECRET: 138767b918eefb472dd8a8e884b1e8dda2d06646ebd03a9ef33a0cdbbf382d84
|
|
ADMIN_INITIAL_PASSWORD: 80c106e53b6a0b75e74aa619
|
|
labels:
|
|
- traefik.enable=true
|
|
- traefik.http.middlewares.gzip.compress=true
|
|
- traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https
|
|
- traefik.http.routers.http-0-umbyte.entryPoints=http
|
|
- traefik.http.routers.http-0-umbyte.middlewares=redirect-to-https
|
|
- 'traefik.http.routers.http-0-umbyte.rule=Host(`umbyte.ru`) && PathPrefix(`/`)'
|
|
- traefik.http.routers.http-0-umbyte.service=http-0-umbyte
|
|
- traefik.http.routers.https-0-umbyte.entryPoints=https
|
|
- traefik.http.routers.https-0-umbyte.middlewares=gzip
|
|
- 'traefik.http.routers.https-0-umbyte.rule=Host(`umbyte.ru`) && PathPrefix(`/`)'
|
|
- traefik.http.routers.https-0-umbyte.service=https-0-umbyte
|
|
- traefik.http.routers.https-0-umbyte.tls.certresolver=letsencrypt
|
|
- traefik.http.routers.https-0-umbyte.tls=true
|
|
- traefik.http.services.http-0-umbyte.loadbalancer.server.port=80
|
|
- traefik.http.services.https-0-umbyte.loadbalancer.server.port=80
|
|
|
|
postgres:
|
|
image: postgres:16-alpine
|
|
container_name: postgres-lwpkqvcz4vvmw93elb7s8mgh
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_DB: umbyte
|
|
POSTGRES_USER: umbyte
|
|
POSTGRES_PASSWORD: 5816e45c1052d6b0b2c7f9be3103069d
|
|
volumes:
|
|
- umbyte-pgdata:/var/lib/postgresql/data
|
|
networks:
|
|
coolify:
|
|
aliases:
|
|
- postgres-lwpkqvcz4vvmw93elb7s8mgh
|
|
healthcheck:
|
|
test: ['CMD-SHELL', 'pg_isready -U umbyte']
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
networks:
|
|
coolify:
|
|
external: true
|
|
|
|
volumes:
|
|
umbyte-pgdata:
|