-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
33 lines (31 loc) · 1.24 KB
/
Copy pathcompose.yml
File metadata and controls
33 lines (31 loc) · 1.24 KB
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
include:
- compose-postgres.yml
- compose-observability.yml
services:
web-app:
build: .
depends_on:
- postgres
- loki
hostname: grading-server
ports:
- "127.0.0.1:6000:6000" # JMX main VM
- "127.0.0.1:6001:6001" # JMX test runner VM
environment:
SERVER_SERVLET_CONTEXT_PATH: ${CONTEXT_PATH-}
JAVA_TOOL_OPTIONS: ${VM_ARGS--Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.port=6000 -Djava.rmi.server.hostname=localhost -Dcom.sun.management.jmxremote.rmi.port=6000}
GRADING_SERVER_TEST_RUNNER_VM_ARGS: ${TEST_RUNNER_VM_ARGS--Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.port=6001 -Djava.rmi.server.hostname=localhost -Dcom.sun.management.jmxremote.rmi.port=6001}
SPRING_CONFIG_IMPORT: configtree:/run/secrets/
secrets:
- source: postgres-password
target: spring.datasource.password
nginx:
build:
context: nginx
depends_on:
- web-app
- grafana
ports:
- "${PORT:-80}:80"
environment:
CONTEXT_PATH: ${CONTEXT_PATH-}