chore: add docker-compose, migrations on start, readme
This commit is contained in:
parent
19fa4f1fcb
commit
ec5269a579
3 changed files with 55 additions and 1 deletions
22
docker-compose.yml
Normal file
22
docker-compose.yml
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
services:
|
||||
postgres:
|
||||
image: postgres:17-alpine
|
||||
environment:
|
||||
POSTGRES_USER: arcanesync
|
||||
POSTGRES_PASSWORD: arcanesync
|
||||
POSTGRES_DB: arcanesync
|
||||
ports:
|
||||
- "5432:5432"
|
||||
volumes:
|
||||
- pgdata:/var/lib/postgresql/data
|
||||
app:
|
||||
build: .
|
||||
depends_on: [postgres]
|
||||
environment:
|
||||
DATABASE_URL: postgres://arcanesync:arcanesync@postgres:5432/arcanesync
|
||||
BOT_TOKEN: ${BOT_TOKEN}
|
||||
NODE_ENV: production
|
||||
ports:
|
||||
- "3000:3000"
|
||||
volumes:
|
||||
pgdata: {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue