-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (42 loc) · 1.01 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
services:
postgres:
image: postgres
restart: always
shm_size: 128mb
networks:
- hammy
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- db:/var/lib/postgresql/data
# Initialize the database on first create
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
ports:
- 5432:5432
hammy:
container_name: hammy
build:
context: .
dockerfile: Dockerfile
networks:
- hammy
restart: unless-stopped
depends_on:
- postgres
environment:
DISCORD_BOT_TOKEN: ${DISCORD_BOT_TOKEN}
LOG_LEVEL: ${LOG_LEVEL}
LLM_URL: ${LLM_URL}
DEZGO_TOKEN: ${DEZGO_TOKEN}
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_HOST: ${POSTGRES_HOST}
networks:
hammy:
driver: bridge
volumes:
db:
driver: local