-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (41 loc) · 1.16 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
services:
quickfixj-spring-boot-server:
build:
context: ./server/.
dockerfile: ./Dockerfile
environment:
JAVA_OPTS: "-agentlib:jdwp=transport=dt_socket,server=y,address=8000,suspend=n -Xmx512m -Xms512m -Dspring.profiles.active=docker"
QUICKFIXJ_SERVER_CONFIG_FILE: "file:/opt/app/quickfixj-server.cfg"
JAVA_TOOL_OPTIONS: -DJdbcURL=jdbc:mysql://mysqldb-server:3306/quickfix
volumes:
- ./configs/quickfixj-server.cfg:/opt/app/quickfixj-server.cfg
depends_on:
mysqldb-server:
condition: service_healthy
restart: always
ports:
- "9880:9880"
- "9881:9881"
- "9876:9876"
- "8080:8080"
networks:
- net
mysqldb-server:
image: mysql/mysql-server:8.0.32
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_ROOT_HOST: "%"
MYSQL_DATABASE: quickfix
MYSQL_USER: testuser
MYSQL_PASSWORD: testuser
volumes:
- mysql-server-data:/var/lib/mysql
- ./mysql:/docker-entrypoint-initdb.d
restart: always
networks:
- net
volumes:
mysql-server-data:
networks:
net: