-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
82 lines (77 loc) · 2.72 KB
/
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
version: "3.9"
services:
frontend:
build:
context: ../tron-common-api-dashboard
dockerfile: Dockerfile.fullstack
args:
- REACT_APP_API_BASE_URL="http://localhost:${PROXY_PORT:-9000}/"
- REACT_APP_API_VERSION_PREFIX=v1
- REACT_APP_API_PATH_PREFIX=api
- PROXY_PORT=${PROXY_PORT:-9000}
ports:
- "${FRONTEND_PORT:-8080}:8080"
depends_on:
- backend
- proxy
proxy:
build:
context: ../tron-common-api-proxy
dockerfile: Dockerfile.fullstack
depends_on:
- backend
ports:
- "${PROXY_PORT:-9000}:9000"
- "${PROXY_CONFIG:-9001}:9001"
volumes:
- proxydata:/app/jwts
environment:
- ENABLE_PROXY=${ENABLE_PROXY:-true}
- WEB_PORT=${PROXY_CONFIG:-9001} # web config localhost port
- LISTEN_ON_PORT=${PROXY_PORT:-9000} # for traffic to be proxied from
- REAL_PROXY_URL=http://backend:${BACKEND_PORT:-8088} # service to proxy traffic to
- DEFAULT_JWT_FILE=admin.jwt # load the admin JWT by default ([email protected])
- DEFAULT_NAMESPACE=istio-system # show proxied requests as coming from P1 SSO (emulated)
seeder:
build:
context: ../tron-common-api-seeder
dockerfile: Dockerfile.fullstack
depends_on:
- backend
- proxy
- postgres
environment:
- RUN_SEEDER=${RUN_SEEDER:-true} # whether to run the seeder or not
- BACKEND_PORT=${BACKEND_PORT:-8088}
- PROXY=${PROXY} # URL to the proxy
backend:
build:
context: ../tron-common-api
dockerfile: Dockerfile.fullstack
depends_on:
- postgres
ports:
- "${BACKEND_PORT:-8088}:8088"
environment:
- SECURITY_ENABLED=${SECURITY_ENABLED:-true}
- SPRING_LIQUIBASE_DROP_FIRST=${DROP_DB:-false}
- SPRING_PROFILES_ACTIVE=${ACTIVE_PROFILE:-production}
- SERVER_PORT=${BACKEND_PORT:-8088}
- PGHOST=postgres
- PGPORT=${PG_DB_PORT:-5432}
- PG_DATABASE=postgres
- APP_DB_ADMIN_PASSWORD=password
- APP_DB_RW_PASSWORD=password
- PG_USER=postgres
- PG_RW_USER=postgres
postgres:
image: postgres
environment:
- POSTGRES_PASSWORD=password
volumes:
- pgdata:/var/lib/postgresql/data # persist the psql db to local disk
ports:
- ${PG_DB_PORT:-5432}:5432
volumes:
pgdata:
proxydata: