-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (39 loc) · 951 Bytes
/
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
version: "3"
services:
db:
image: mysql:5.7
restart: always
environment:
MYSQL_DATABASE: 'femr_db'
MYSQL_USER: 'femr'
MYSQL_PASSWORD: 'password'
MYSQL_ROOT_PASSWORD: 'password'
ports:
- '3310:3306'
expose:
- '3310'
volumes:
- db-data:/var/lib/mysql
- ./mysql:/etc/mysql/conf.d
command: ["mysqld", "--log-bin=mysql-bin", "--server_id=1"]
maxwell:
image: zendesk/maxwell
depends_on:
- db
tty: true
command: ["bin/maxwell", "--user=maxwell", "--password=secret", "--host=db", "--port=3306", "--producer=stdout"]
femr:
build: ./femr
depends_on:
- db
- maxwell
tty: true
ports:
- '9000:8081'
expose:
- '9000'
volumes:
- ./femr/conf:/home/femrapp/conf
command: ["/home/femrapp/App/femr-2.3.8/bin/femr", "-Dconfig.file=/home/femrapp/conf/prod.conf", "-Dhttp.port=8081"]
volumes:
db-data: