-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (31 loc) · 960 Bytes
/
docker-compose.yml
File metadata and controls
32 lines (31 loc) · 960 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
version: '3.9'
services:
java-app:
container_name: java-app
image: blazo-bootcamp-docker-jwt:1.0.0
build: .
ports:
- 8080:8080
environment:
- DATABASE_URL=jdbc:postgresql://java-bootcamp-db:5432/postgres
- DATABASE_USERNAME=postgres
- DATABASE_PASSWORD=postgres
# The secret key must be an HMAC hash string of 256 bits; otherwise, the token generation will throw an error.
- JWT_SECRET_KEY=3cfa76ef14937c1c0ea519f8fc057a80fcd04a7420f8e8bcd0a7567c272e007b
- JWT_EXPIRATION=43200000
# Bootstrap admin information
- ADMIN_EMAIL=admin@gmail.com
- ADMIN_PASSWORD=admin
- ADMIN_NAME=Super
- ADMIN_LASTNAME=Admin
depends_on:
- java-bootcamp-db
java-bootcamp-db:
container_name: java-bootcamp-db
image: postgres:12
ports:
- 5432:5432
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres