-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (45 loc) · 1.12 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
# SPDX-FileCopyrightText: NOI Techpark <[email protected]>
#
# SPDX-License-Identifier: CC0-1.0
services:
app:
image: maven:3-jdk-8-alpine
env_file:
- .env
environment:
MAVEN_CONFIG: /var/maven/.m2
MAVEN_OPTS: -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9000
entrypoint: >
mvn
-Duser.home=/var/maven
exec:java
-Dexec.args="${OPERATION_MODE}"
ports:
- 9000:9000
- 9001:9001
volumes:
- ~/.m2/:/var/maven/.m2
- ./:/code
working_dir: /code
# depends_on:
# - db
tty: true
ulimits:
nofile:
soft: 65536
hard: 65536
db:
image: postgres:15-alpine
restart: always
env_file:
- .env
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
volumes:
- ./db/:/var/lib/postgresql/data
- ./a22db.sql:/docker-entrypoint-initdb.d/1_create_schema.sql
- ./a22db_station_detail.sql:/docker-entrypoint-initdb.d/2_station_detail.sql
- ./a22db_insert_webservice.sh:/docker-entrypoint-initdb.d/3_insert_webservice.sh