-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
38 lines (36 loc) · 1.45 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
version: '3.4'
services:
flypackbot:
image: ${DOCKER_REGISTRY-}flypackbot
build:
context: .
dockerfile: FlypackBot/Dockerfile
environment:
- TZ=${TIMEZONE}
- ASPNETCORE_ENVIRONMENT=${ASPNETCORE_ENVIRONMENT}
- Flypack__PrivateKey=${FLYPACK_PRIVATE_KEY}
- Flypack__FetchInterval=${FLYPACK_FETCH_INTERVAL}
- Telegram__AccessToken=${TELEGRAM_ACCESS_TOKEN}
- Telegram__AuthorizedUsers__0=${TELEGRAM_AUTHORIZED_USERS_0}
- Telegram__ChannelIdentifier=${TELEGRAM_CHANNEL_IDENTIFIER}
- Telegram__MaxMessageLength=${TELEGRAM_MAXIMUM_MESSAGE_LENGTH}
- Telegram__MaxMessageEntities=${TELEGRAM_MAXIMUM_MESSAGE_ENTITIES}
- Telegram__ConsecutiveMessageInterval=${TELEGRAM_CONSECUTIVE_MESSAGES_INTERVAL}
- MongoDb__DatabaseName=${MONGO_INITDB_DATABASE}
- MongoDb__ConnectionString=${MONGO_CONNECTION_STRING}
flypackdb:
image: mongo:latest
environment:
TZ: ${TIMEZONE}
MONGO_INITDB_ROOT_USERNAME: ${MONGO_INITDB_ROOT_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_INITDB_ROOT_PASSWORD}
MONGO_INITDB_USERNAME: ${MONGO_INITDB_USERNAME}
MONGO_INITDB_PASSWORD: ${MONGO_INITDB_PASSWORD}
MONGO_INITDB_DATABASE: ${MONGO_INITDB_DATABASE}
volumes:
- ./.mongodb/entrypoint/:/docker-entrypoint-initdb.d/
- ./.mongodb/home:/home/mongodb/
- ./.mongodb/data/db/:/data/db/
- ./.mongodb/data/log/:/var/log/mongodb/
ports:
- "27017:27017"