Some checks failed
Deploy Production / deploy (push) Failing after 5s
41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
version: "3.8"
|
|
|
|
services:
|
|
app:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
target: production
|
|
container_name: api_porfolio
|
|
environment:
|
|
NODE_ENV: production
|
|
DB_HOST: postgres
|
|
DB_PORT: 5432
|
|
DB_USERNAME: portfolio_user
|
|
DB_PASSWORD: portfolio123
|
|
DB_NAME: portfolio
|
|
JWT_SECRET: jLqumBtNFomOkVy8GqktMpjxpZ9Ej4iKdsCo89hbiJG
|
|
JWT_REFRESH_SECRET: RzcodpRglHs4Xqs5pwCFxwNacqjYVNUKm2lVtwiwxOD
|
|
COOKIE_DOMAIN: altricade.github.io
|
|
COOKIE_SECURE: true
|
|
JWT_ACCESS_EXPIRATION: 15m
|
|
JWT_REFRESH_EXPIRATION: 7d
|
|
PORT: 3000
|
|
networks:
|
|
- proxy
|
|
- internal
|
|
restart: unless-stopped
|
|
labels:
|
|
- traefik.enable=true
|
|
- traefik.docker.network=proxy
|
|
- traefik.http.routers.api-portfolio.rule=Host(`api-portfolio.ai-assistant-bot.xyz`)
|
|
- traefik.http.routers.api-portfolio.entrypoints=web,websecure
|
|
- traefik.http.routers.api-portfolio.tls.certresolver=le
|
|
- traefik.http.services.api-portfolio.loadbalancer.server.port=3000
|
|
|
|
networks:
|
|
proxy:
|
|
external: true
|
|
internal:
|
|
external: true
|