mirror of
https://github.com/amineo/t2-stat-parser.git
synced 2026-01-19 17:34:43 +00:00
59 lines
1.3 KiB
YAML
59 lines
1.3 KiB
YAML
version: "3.7"
|
|
|
|
# Service Definitions
|
|
services:
|
|
db:
|
|
environment:
|
|
POSTGRES_DB: "t2_stats"
|
|
POSTGRES_USER: "dev"
|
|
POSTGRES_PASSWORD: "dev"
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- ./build/postgres/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
|
|
- ./build/postgres/export_local_db.sh:/export_local_db.sh
|
|
# - ./build/postgres/postgresql.conf:/var/lib/postgresql/data/postgresql.conf
|
|
|
|
parser:
|
|
environment:
|
|
DATABASE_URL: "postgres://dev:dev@db:5432/t2_stats"
|
|
ports:
|
|
- "8000:8080"
|
|
volumes:
|
|
- ./app/t2-stat-parser:/app
|
|
|
|
api:
|
|
environment:
|
|
NODE_ENV: "development" # auto-reloads app on save
|
|
|
|
env_file:
|
|
- .env
|
|
ports:
|
|
- "8080:8080"
|
|
- "8443:8443"
|
|
volumes:
|
|
- ./build/api/ecosystem._PROD_.config.js:/opt/node_app/ecosystem._PROD_.config.js
|
|
- ./build/api/ecosystem._DEV_.config.js:/opt/node_app/ecosystem._DEV_.config.js
|
|
- ./app/api:/opt/node_app/app:delegated
|
|
|
|
# temp vols
|
|
- notused:/opt/node_app/app/node_modules
|
|
- builtincontainer:/opt/node_app/app/dist
|
|
|
|
|
|
# pghero:
|
|
# image: ankane/pghero
|
|
# ports:
|
|
# - "9999:8080"
|
|
# environment:
|
|
# DATABASE_URL: "postgres://dev:dev@db:5432/t2_stats"
|
|
# networks:
|
|
# - internal
|
|
# - external
|
|
|
|
|
|
|
|
volumes:
|
|
notused:
|
|
builtincontainer:
|