forked from viveksantayana/geas-bot
29 lines
748 B
YAML
29 lines
748 B
YAML
|
version: '3.4'
|
||
|
|
||
|
services:
|
||
|
geasbot-app:
|
||
|
build: ./app
|
||
|
volumes:
|
||
|
- ./app:/usr/src/app
|
||
|
restart: always
|
||
|
depends_on:
|
||
|
- geasbot-db
|
||
|
environment:
|
||
|
- BOT_TOKEN=${BOT_TOKEN}
|
||
|
- TEST_TOKEN=${TEST_TOKEN}
|
||
|
- MONGO_INITDB_ROOT_USERNAME=${MONGO_INITDB_ROOT_USERNAME}
|
||
|
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_INITDB_ROOT_PASSWORD}
|
||
|
- BOT_VERSION=${BOT_VERSION}
|
||
|
|
||
|
geasbot-db:
|
||
|
image: mongo:latest
|
||
|
volumes:
|
||
|
- ./db:/data/db
|
||
|
expose:
|
||
|
- "27017"
|
||
|
environment:
|
||
|
- BOT_TOKEN=${BOT_TOKEN}
|
||
|
- TEST_TOKEN=${TEST_TOKEN}
|
||
|
- MONGO_INITDB_ROOT_USERNAME=${MONGO_INITDB_ROOT_USERNAME}
|
||
|
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_INITDB_ROOT_PASSWORD}
|
||
|
- BOT_VERSION=${BOT_VERSION}
|