composes/reflex.yml

28 lines
662 B
YAML

name: reflex
secrets:
MYSQL_USER_PASSWORD:
file: .secrets/MYSQL_USER_PASSWORD
services:
api:
image: git.jusemon.com/jusemon/reflex-api:1.0.0
restart: unless-stopped
secrets:
- MYSQL_USER_PASSWORD
environment:
NODE_ENV: "production"
HOST: "0.0.0.0"
PORT: 3000
API_VERSION: 1
ALLOWED_ORIGINS: "https://reflex.jusemon.com"
DB_HOST: "db-mariadb-1"
DB_DATABASE: "reflex_jsm"
DB_USER: "jusemon"
DB_PASSWORD__FILE: /run/secrets/MYSQL_USER_PASSWORD
DB_PORT: 3306
COUNTRY_SERVICE: "https://api.country.is/"
networks:
default:
name: default-network
external: true