-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (40 loc) · 877 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
40 lines (40 loc) · 877 Bytes
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
version: '2'
services:
bot:
build: .
restart: always
container_name: bot
tty: true
command: npm run dev
volumes:
- .:/usr/app/
- /usr/app/node_modules
ports:
- 3003:3003
- 9229:9229
depends_on:
- db
links:
- db
environment:
NODE_ENV: ${NODE_ENV}
DISCORD_TOKEN: ${DISCORD_TOKEN}
BOT_OWNER: ${BOT_OWNER}
BOT_PREFIX: ${BOT_PREFIX}
DB_DRIVER: ${DB_DRIVER}
DB_HOST: ${DB_HOST}
DB_PORT: ${DB_PORT}
DB_USER: ${DB_USER}
DB_PASSWORD: ${DB_PASSWORD}
db:
container_name: db
volumes:
- ./pgdata:/var/lib/postgresql/data
ports:
- 5432:5432
image: postgres:11.5
environment:
TZ: Europe/Paris
POSTGRES_USER: ${DB_USER}
POSTGRES_DB: ${DB_NAME}
POSTGRES_PASSWORD: ${DB_PASSWORD}