forked from wise-old-man/wiseoldman-discord-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (48 loc) · 861 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
36
37
38
39
40
41
42
43
44
45
46
47
48
version: '3'
services:
db:
image: postgres
networks:
- webnet
- pgadminnet
volumes:
- pgdata:/var/lib/postgresql/data
env_file:
- ./.env
expose:
- '5432'
command: postgres -c listen_addresses='*'
pgadmin:
image: dpage/pgadmin4
env_file:
- ./.env
ports:
- '54321:80'
depends_on:
- db
logging:
driver: none
networks:
- pgadminnet
bot:
build: .
expose:
- '7000'
ports:
- '7000:7000'
networks:
- webnet
depends_on:
- db
environment:
DB_HOST: db
volumes:
- .:/wise-old-man/discord-bot
- /wise-old-man/discord-bot/node_modules
command: ['./wait-for-it.sh', '-t', '30', 'db:5432', '--', 'npm', 'run', 'dev']
networks:
webnet:
pgadminnet:
driver: bridge
volumes:
pgdata: