-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
35 lines (33 loc) · 949 Bytes
/
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
version: "3.9"
services:
postgres:
container_name: 'houston-postgres'
image: postgres:15
volumes:
- postgres:/var/lib/postgresql/data
restart: unless-stopped
environment:
POSTGRES_USER: 'houston'
POSTGRES_PASSWORD: 'supersecurepassword'
POSTGRES_DB: 'houston'
bot:
container_name: 'houston-bot'
build:
context: './src'
dockerfile: 'Houston.Bot/Dockerfile'
depends_on:
- postgres
volumes:
- './bot-logs:/app/logs'
restart: unless-stopped
environment:
- TOKEN=${TOKEN}
- DATABASE=Server=postgres;Port=5432;Database=houston;UserId=houston;Password=supersecurepassword;
env_file:
- .env
logging:
driver: "local"
options:
max-size: 50M
volumes:
postgres: