-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
53 lines (50 loc) · 1.05 KB
/
docker-compose.yaml
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
49
50
51
52
53
services:
### database
postgres:
image: postgres:16
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASS}
POSTGRES_DB: ${DB_NAME}
ports:
- "5432:5432"
### native
# native-api:
# build:
# context: .
# dockerfile: native.Dockerfile
# restart: no
# ports:
# - "8080:8080"
# depends_on:
# - postgres
# environment:
# DB_HOST: postgres
# DB_PORT: 5432
# DB_USER: ${DB_USER}
# DB_PASS: ${DB_PASS}
# DB_NAME: ${DB_NAME}
# SERVER_PORT: 8080
# JWT_SECRET: ${JWT_SECRET}
# JWT_TTL: ${JWT_TTL}
### jvm
jvm-api:
build:
context: .
dockerfile: jvm.Dockerfile
restart: unless-stopped
ports:
- "18080:18080"
depends_on:
- postgres
environment:
DB_HOST: postgres
DB_PORT: 5432
DB_USER: ${DB_USER}
DB_PASS: ${DB_PASS}
DB_NAME: ${DB_NAME}
DB_SCHEMA: ${DB_SCHEMA}
SERVER_PORT: 18080
JWT_SECRET: ${JWT_SECRET}
JWT_TTL: ${JWT_TTL}
APP_NAME: ${APP_NAME}