Skip to content

Commit 51bfe14

Browse files
committed
feat: postgresql server on docker-compose
1 parent aade7aa commit 51bfe14

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

docker-compose.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,17 @@ services:
55
command: node build/main.js
66
environment:
77
- BOT_TOKEN=${BOT_TOKEN}
8+
9+
db:
10+
image: postgres:14.1-alpine
11+
restart: always
12+
environment:
13+
- POSTGRES_USER=postgres
14+
- POSTGRES_PASSWORD=postgres
15+
ports:
16+
- '5432:5432'
17+
volumes:
18+
- db:/var/lib/postgresql/data
19+
volumes:
20+
db:
21+
driver: local

0 commit comments

Comments
 (0)