-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
72 lines (71 loc) · 1.6 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
version: '2.2'
services:
nginx:
build:
context: docker/nginx
container_name: ontaxi-nginx
environment:
TZ: "Asia/Ho_Chi_Minh"
PUID: 1000
PGID: 1000
URL: ontaxi.vn
SUBDOMAINS: api,hub
ONLY_SUBDOMAINS: "true"
VALIDATION: http
ports:
- "80:80"
- "443:443"
depends_on:
- hub
- api
restart: always
hub:
image: thold88/ontaxi-hub:1.0.0-SNAPSHOT
container_name: ontaxi-hub
environment:
TZ: "Asia/Ho_Chi_Minh"
depends_on:
- mysql
volumes:
- hub_log:/usr/local/tomcat/logs
api:
image: thold88/ontaxi-api:1.0.0-SNAPSHOT
container_name: ontaxi-api
environment:
TZ: "Asia/Ho_Chi_Minh"
depends_on:
- mysql
volumes:
- api_log:/usr/local/tomcat/logs
backup:
image: thold88/mysql-s3-backup:1.0.0
tty: true
container_name: ontaxi-backup
depends_on:
- mysql
environment:
MYSQL_DATABASE: "ontaxi"
MYSQL_USER: "root"
MYSQL_PASSWORD: "adm1n"
AWS_ACCESS_KEY_ID: "AKIAQFNFYMQHBMSXWIWK"
AWS_SECRET_ACCESS_KEY: "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"
mysql:
image: mysql:5.7
container_name: ontaxi-mysql
volumes:
- mysql_data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: "adm1n"
MYSQL_DATABASE: "ontaxi"
MYSQL_USER: "root"
MYSQL_PASSWORD: "adm1n"
TZ: "Asia/Ho_Chi_Minh"
command: ["--max_allowed_packet=512M", "--innodb_log_file_size=200M"]
restart: always
volumes:
mysql_data:
driver: local
api_log:
driver: local
hub_log:
driver: local