-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose-dev-mac-nodocker.yml
More file actions
34 lines (34 loc) · 1.28 KB
/
Copy pathdocker-compose-dev-mac-nodocker.yml
File metadata and controls
34 lines (34 loc) · 1.28 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
34
# this file is used if you want to run java on the host, for example
# directly from IntelliJ
# mongo is exposed to be accessible from the host
# the nginx proxy is modified to pass through to the host
# To start the java part, you can use "Run 'Conformance'" (or 'Debug')
# in IntelliJ 'Spring Boot' support or start manually something like:
# java -Xdebug \
# -Xrunjdwp:transport=dt_socket,address=127.0.0.1:9999,server=y,suspend=n \
# -jar target/fapi-test-suite.jar --fintechlabs.devmode=true \
# --spring.data.mongodb.uri=mongodb://127.0.0.1:27017/test_suite
# This should only be used for development; when running the suite use
# the docker containers for consistency
services:
mongodb:
image: mongo:6.0.13
volumes:
- ./mongo/data:/data/db:delegated
ports:
- "27017:27017"
nginxlocal:
build:
context: ./nginx
dockerfile: Dockerfile-nodocker
ports:
- "8443:8443"
- "8444:8444"
- "8445:8445"
volumes:
# we don't use delegated here so that updates propogate promptly
- ./src/main/resources/:/usr/share/nginx/html/
# for mac, we add a hostname mapping for server that resolves to the host gateway
extra_hosts:
# the special host-gateway value resolves to the internal IP address of the host.
- "server:host-gateway"