-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
116 lines (110 loc) · 3.18 KB
/
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
version: '3.4'
networks:
default:
external:
name: ${NETWORK_NAME}
volumes:
mysql:
external:
name: ${COMPOSE_PROJECT_NAME}-mysql
elasticsearch:
external:
name: ${COMPOSE_PROJECT_NAME}-elasticsearch
redis:
external:
name: ${COMPOSE_PROJECT_NAME}-redis
services:
mysql:
container_name: ${COMPOSE_PROJECT_NAME}_mysql
restart: always
image: ekyna/mysql:${MYSQL_VERSION}
working_dir: /root
environment:
TZ: ${TIMEZONE}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
cap_add:
- SYS_NICE
ports:
- ${MYSQL_PORT}:3306
volumes:
- mysql:/var/lib/mysql:rw
healthcheck:
interval: 10s
timeout: 2s
retries: 3
start_period: 30s
logging:
driver: "json-file"
options: { max-size: "5m", max-file: "3" }
networks:
default:
aliases:
- mysql.${COMPOSE_PROJECT_NAME}
elasticsearch:
container_name: ${COMPOSE_PROJECT_NAME}_elasticsearch
restart: always
image: ekyna/elasticsearch:${ELASTICSEARCH_VERSION}
volumes:
- elasticsearch:/usr/share/elasticsearch/data:rw
environment:
- TZ=${TIMEZONE}
- cluster.name=${COMPOSE_PROJECT_NAME}-cluster
- discovery.type=single-node
- xpack.security.enabled=false
- bootstrap.memory_lock=true
- ES_JAVA_OPTS=-Xms512m -Xmx512m -Des.enforce.bootstrap.checks=true
cap_add:
- IPC_LOCK
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
healthcheck:
interval: 10s
timeout: 2s
retries: 3
start_period: 30s
logging:
driver: "json-file"
options: { max-size: "2m", max-file: "3" }
networks:
default:
aliases:
- elasticsearch.${COMPOSE_PROJECT_NAME}
chrometopdf:
container_name: ${COMPOSE_PROJECT_NAME}_chrometopdf
restart: always
image: ekyna/chrome-to-pdf:latest
environment:
TZ: ${TIMEZONE}
AUTH_TOKEN: ${CHROME_TO_PDF_TOKEN}
logging:
driver: json-file
options: { max-size: "2m", max-file: "3" }
healthcheck:
interval: 10s
timeout: 2s
retries: 3
start_period: 10s
networks:
default:
aliases:
- chrometopdf.${COMPOSE_PROJECT_NAME}
redis:
container_name: ${COMPOSE_PROJECT_NAME}_redis
restart: always
image: redis:${REDIS_VERSION}
environment:
TZ: ${TIMEZONE}
volumes:
- redis:/data:rw
logging:
driver: "json-file"
options: { max-size: "2m", max-file: "3" }
networks:
default:
aliases:
- redis.${COMPOSE_PROJECT_NAME}