123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- version: '3.7'
- services:
- noctbot:
- image: noctbot
- build:
- context: ./
- dockerfile: ./bot/Dockerfile
- args:
- OPENCV_VERSION: 3.4
- restart: on-failure
- depends_on:
- - db
- env_file:
- - .env
- - db.env
- environment:
- NODE_ENV: production
- BOT_TOKEN: ${BOT_TOKEN}
- FORUM_PASS: ${FORUM_PASS}
- FORUM_API_KEY: ${FORUM_API_KEY}
- IGNORE_CHANGED_NEWS: ${IGNORE_CHANGED_NEWS}
- NPM_CONFIG_LOGLEVEL: info
- TYPEORM_USERNAME: ${DB_USERNAME}
- TYPEORM_PASSWORD: ${DB_PASSWORD}
- TYPEORM_DATABASE: ${DB_NAME}
- ports:
- - 3000:3000
- web:
- image: noctbot_web
- build:
- context: ./
- dockerfile: ./web/Dockerfile
- restart: on-failure
- depends_on:
- - db
- env_file:
- - .env
- - db.env
- environment:
- NODE_ENV: production
- TYPEORM_USERNAME: ${DB_USERNAME}
- TYPEORM_PASSWORD: ${DB_PASSWORD}
- TYPEORM_DATABASE: ${DB_NAME}
- ports:
- - 8181:3000
- db:
- image: postgres
- restart: always
- env_file:
- - ./db.env
- environment:
- POSTGRES_PASSWORD: ${DB_PASSWORD}
- POSTGRES_USER: ${DB_USERNAME}
- volumes:
- - ./data/db:/var/lib/postgresql/data
- ports:
- - 5432:5432
- adminer:
- image: adminer
- restart: always
- ports:
- - 3080:8080
|