-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-product.yml
113 lines (113 loc) · 3.06 KB
/
docker-compose-product.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
version: '3.8'
services:
# elasticsearch:
# image: 'bitnami/elasticsearch:latest'
# healthcheck:
# test: [ 'CMD-SHELL', 'curl --silent --fail localhost:9200/_cluster/health || exit 1' ]
# interval: 5s
# timeout: 5s
# start_period: 10s
# retries: 3
# ports:
# - '9200:9200'
# volumes:
# - 'elasticsearch_data:/bitnami/elasticsearch/data'
# kibana:
# image: 'bitnami/kibana:latest'
# healthcheck:
# test: [ 'CMD-SHELL', 'curl --silent --fail localhost:5601 || exit 1' ]
# interval: 5s
# timeout: 5s
# start_period: 10s
# retries: 3
# depends_on:
# elasticsearch:
# condition: service_healthy
# environment:
# - KIBANA_ELASTICSEARCH_URL=elasticsearch
# ports:
# - '5601:5601'
# volumes:
# - 'kibana_data:/bitnami/kibana'
# rabbitmq:
# image: 'bitnami/rabbitmq:latest'
# healthcheck:
# test: [ 'CMD', 'rabbitmq-diagnostics', 'check_port_connectivity' ]
# interval: 5s
# timeout: 5s
# start_period: 10s
# retries: 3
# environment:
# - RABBITMQ_USERNAME=pushdeer
# - RABBITMQ_PASSWORD=theVeryp@ssw0rd
# - RABBITMQ_PLUGINS=rabbitmq_delayed_message_exchange
# - RABBITMQ_COMMUNITY_PLUGINS=https://github.com/rabbitmq/rabbitmq-delayed-message-exchange/releases/download/3.11.1/rabbitmq_delayed_message_exchange-3.11.1.ez
# ports:
# - '15672:15672'
# volumes:
# - 'rabbitmq_data:/bitnami/rabbitmq/mnesia'
mariadb:
image: 'bitnami/mariadb:latest'
healthcheck:
test: [ 'CMD', 'mysqladmin', 'ping', '--silent', '--password=theVeryp@ssw0rd' ]
interval: 5s
timeout: 5s
start_period: 5s
retries: 3
environment:
- MARIADB_DATABASE=pushdeer
- MARIADB_USER=pushdeer
- MARIADB_PASSWORD=theVeryp@ssw0rd
- MARIADB_ROOT_PASSWORD=theVeryp@ssw0rd
ports:
- '3306:3306'
volumes:
- 'mariadb_data:/bitnami/mariadb'
redis:
image: 'bitnami/redis:latest'
healthcheck:
test: [ 'CMD', 'redis-cli','ping' ]
interval: 5s
timeout: 5s
start_period: 5s
retries: 3
environment:
- ALLOW_EMPTY_PASSWORD=yes
ports:
- '6379:6379'
app:
build:
context: .
dockerfile: './docker/product/Dockerfile'
healthcheck:
test: [ 'CMD-SHELL', 'curl --silent --fail localhost:5200 || exit 1' ]
interval: 5s
timeout: 5s
start_period: 5s
retries: 3
depends_on:
mariadb:
condition: service_healthy
redis:
condition: service_healthy
# elasticsearch:
# condition: service_healthy
# rabbitmq:
# condition: service_healthy
environment:
- DISABLE_DEFAULT_SERVER=1
- LARAVELS_WORKER_NUM=2
- LARAVELS_TASK_WORKER_NUM=2
- APN_CERTIFICATE_SECRET=64wtMhU4mULj
- APN_BUNDLE_ID_APP=com.pushdeer.self.ios
- APN_BUNDLE_ID_CLIP=com.pushdeer.self.ios.Clip
ports:
- '5200:5200'
volumes:
- './:/app'
working_dir: '/app'
volumes:
# elasticsearch_data:
# kibana_data:
mariadb_data:
# rabbitmq_data: