-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
76 lines (71 loc) · 1.74 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# startup cmd
# mysql> GRANT ALL PRIVILEGES ON *.* TO 'ffaFingerprints'@'%' IDENTIFIED BY 'fp1298';
# mysql> flush privileges;
#
# login
# docker-compose exec db
# mysql --host pmo.ffaprivatebank.com --port 3306 --user=ffaFingerprints --password=fp1298
version: '2'
services:
db:
image: mysql:8
env_file: .env
environment:
- MYSQL_PASSWORD=$MYSQL_PASSWORD
ports:
- "3306:3306"
volumes:
- ${PWD}/initdb:/docker-entrypoint-initdb.d/
nats:
# https://hub.docker.com/_/nats/
image: nats
#ports:
#- 4222:4222
#- 8222:8222
#- 6222:6222
updater:
build:
context: updater
dockerfile: Dockerfile
#volumes:
#- /path/to/ZKAccess3.5:/data/ZKTeco # <<<<< replace with your own folder
depends_on:
- db
- nats
links:
- nats
env_file: .env
environment:
- MYSQL_PASSWORD=$MYSQL_PASSWORD
# URLs of the form https://hchk.io/123-123-123-123. Check https://healthchecks.io/
# one for each cron job in updater
- HCHK_UPDATE=$HCHK_UPDATE
- HCHK_CHECKMOUNT=$HCHK_CHECKMOUNT
copier:
build:
context: copier
dockerfile: Dockerfile
depends_on:
- db
- nats
env_file: .env
environment:
- MYSQL_PASSWORD=$MYSQL_PASSWORD
- SQL_SERVER_TABLE=MF_USERS_LOCK # _TEST201703
volumes:
# will copy odbc.ini and odbcinst.ini, as well as apache2 config
- ${PWD}/copier/etc/odbc:/etc/ffa-zkteco-mfbf-copier-odbc
volumes_from:
- updater:ro
# no need to expose port since redirected internally in service "ui"
#ports:
#- "8082:80"
ui:
image: nginx:alpine
depends_on:
- copier
volumes:
- ${PWD}/ui/www:/usr/share/nginx/html
- ${PWD}/ui/etc/:/etc/nginx/conf.d/
ports:
- "8083:80"