-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
62 lines (58 loc) · 1.93 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
version: '3.1'
services:
google-chat-standup-bot-db:
image: postgres:13
container_name: google-chat-standup-bot-db
restart: always
environment:
POSTGRES_PASSWORD_FILE: /run/secrets/postgres-passwd
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB_NAME}
ports:
- 5432:5432
# expose:
# - 5432
secrets:
- postgres-passwd
volumes:
- ${LOCAL_DATA_PATH}/database:/var/lib/postgresql/data
google-chat-standup-bot:
depends_on:
- google-chat-standup-bot-db
build: .
image: google-chat-standup-bot:latest
container_name: google-chat-standup-bot
restart: always
environment:
AUDIENCE: ${AUDIENCE}
DB_HOST: ${DB_HOST}
DB_NAME: ${DB_NAME}
DB_USERNAME: ${DB_USERNAME}
DB_PASSWORD_FILE: /run/secrets/postgres-passwd
GOOGLE_SERVICE_ACCOUNT_JSON: ${GOOGLE_SERVICE_ACCOUNT_JSON}
CRON_TIME: ${CRON_TIME}
TZ: ${TIME_ZONE}
secrets:
- postgres-passwd
volumes:
- ${LOCAL_DATA_PATH}/logs:/root/logs
labels:
- "traefik.enable=true"
- "traefik.http.routers.standup-bot.entrypoints=web"
- "traefik.http.routers.standup-bot.rule=Host(`${HOST}`)"
- "traefik.http.middlewares.standup-bot-https-redirect.redirectscheme.scheme=https"
- "traefik.http.routers.standup-bot.middlewares=standup-bot-https-redirect"
- "traefik.http.routers.standup-bot-secure.entrypoints=websecure"
- "traefik.http.routers.standup-bot-secure.rule=Host(`${HOST}`)"
- "traefik.http.routers.standup-bot-secure.tls=true"
- "traefik.http.routers.standup-bot-secure.tls.certresolver=myhttpchallenge"
- "traefik.http.routers.standup-bot-secure.service=standup-bot"
- "traefik.http.services.standup-bot.loadbalancer.server.port=5000"
- "traefik.docker.network=traefik"
networks:
default:
external:
name: traefik
secrets:
postgres-passwd:
file: ./secrets/postgres-passwd