-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
37 lines (34 loc) · 803 Bytes
/
docker-compose.yaml
File metadata and controls
37 lines (34 loc) · 803 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
version: "3.8"
services:
db:
image: 'postgres:latest'
container_name: manager-bd
restart: on-failure
networks:
- manager-net
ports:
- "5432:5432"
environment:
- POSTGRES_DB=discordbot
- POSTGRES_USER=${DB_USERNAME}
- POSTGRES_PASSWORD=${DB_PASS}
app:
image: gypsyjr/discord-manager:0.1.0
container_name: discord-manager
build:
context: .
restart: on-failure
networks:
- manager-net
depends_on:
- db
command: gradle bootRun
environment:
- DB_PASS=${DB_PASS}
- DB_URL=jdbc:postgresql://manager-bd:5432/discordbot?useSSL=false
- DB_USERNAME=${DB_USERNAME}
- DISCORD_TOKEN=${DISCORD_TOKEN}
- SEGMIND_TOKEN=${SEGMIND_TOKEN}
networks:
manager-net:
driver: bridge