-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-prod.yml
43 lines (40 loc) · 1.03 KB
/
docker-compose-prod.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
39
40
41
42
43
version: '3.8'
services:
bot:
build:
context: .
dockerfile: Dockerfile
image: ghcr.io/kranikitao/fxhash-telegram-bot/runner:latest
restart: unless-stopped
logging:
driver: awslogs
options:
awslogs-region: eu-west-1
awslogs-group: DockerLogs
awslogs-stream: log-stream
environment:
FXBOT_TG_TOKEN: ${FXBOT_TG_TOKEN}
FXBOT_DB_NAME: fxhashbot
FXBOT_DB_HOST: postgres
FXBOT_DB_PASSWORD: ${FXBOT_DB_PASSWORD}
FXBOT_DB_USER: ${FXBOT_DB_USER}
FXBOT_DB_PORT: 5432
depends_on:
- postgres
postgres:
build: postgres
image: ghcr.io/kranikitao/fxhash-telegram-bot/postgres:latest
logging:
driver: awslogs
options:
awslogs-region: eu-west-1
awslogs-group: DockerLogs
awslogs-stream: log-stream
environment:
POSTGRES_USER: ${FXBOT_DB_USER}
POSTGRES_PASSWORD: ${FXBOT_DB_PASSWORD}
POSTGRES_DB: fxhashbot
volumes:
- database:/var/lib/postgresql/data
volumes:
database: