-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
152 lines (142 loc) · 3.35 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
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
version: '3'
services:
app:
build: .
command: npm run start:app
depends_on:
- elasticsearch
- mailhog
- mariadb
- minio
- redis
environment:
AWS_ACCESS_KEY_ID: minio
AWS_SECRET_ACCESS_KEY: not_very_secret
AWS_ENDPOINT: http://minio:9000
AWS_DEFAULT_REGION: us-east-1
DATABASE_URL: mysql://app:app@mariadb:3306/app
DEBUG: starter-nodejs:*
ELASTICSEARCH_URL: http://elasticsearch:9200
JWT_SECRET: not_very_secret
MAILER_URL: smtp://mailhog:1025
NODE_ENV: development
REDIS_URL: redis://redis:6379
healthcheck:
test: curl -f http://localhost:3000
ports:
- '3000:3000'
volumes:
- .:/app
- /app/node_modules
elasticsearch:
image: elasticsearch:7.14.0
environment:
ES_JAVA_OPTS: '-Xmx512m -Xms512m'
discovery.type: single-node
ports:
- '9200:9200'
- '9300:9300'
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- elasticsearch_data:/usr/share/elasticsearch/data
mailhog:
image: mailhog/mailhog:latest
ports:
- '1025:1025'
- '8025:8025'
mariadb:
image: mariadb:10.5
environment:
MYSQL_DATABASE: app
MYSQL_USER: app
MYSQL_PASSWORD: app
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
ports:
- '3306:3306'
volumes:
- mariadb_data:/var/lib/mysql
minio:
image: minio/minio:latest
command: minio server /data/minio --console-address ":8900"
environment:
MINIO_ROOT_USER: minio
MINIO_ROOT_PASSWORD: not_very_secret
ports:
- '9000:9000'
- '8900:8900'
volumes:
- minio_data:/data/minio
phpmyadmin:
image: phpmyadmin:5
depends_on:
- mariadb
environment:
PMA_HOST: mariadb
PMA_USER: app
PMA_PASSWORD: app
ports:
- '8000:80'
redis:
image: redis:6-alpine
ports:
- '6379:6379'
volumes:
- redis_data:/data
schedule:
build: .
command: npm run start:schedule
depends_on:
- elasticsearch
- mailhog
- mariadb
- minio
- redis
environment:
AWS_ACCESS_KEY_ID: minio
AWS_SECRET_ACCESS_KEY: not_very_secret
AWS_ENDPOINT: http://minio:9000
AWS_DEFAULT_REGION: us-east-1
DATABASE_URL: mysql://app:app@mariadb:3306/app
DEBUG: starter-nodejs:*
ELASTICSEARCH_URL: http://elasticsearch:9200
JWT_SECRET: not_very_secret
MAILER_URL: smtp://mailhog:1025
NODE_ENV: development
REDIS_URL: redis://redis:6379
SKIP_MIGRATIONS: 'true'
volumes:
- .:/app
- /app/node_modules
worker:
build: .
command: npm run start:worker
depends_on:
- elasticsearch
- mailhog
- mariadb
- minio
- redis
environment:
AWS_ACCESS_KEY_ID: minio
AWS_SECRET_ACCESS_KEY: not_very_secret
AWS_ENDPOINT: http://minio:9000
AWS_DEFAULT_REGION: us-east-1
DATABASE_URL: mysql://app:app@mariadb:3306/app
DEBUG: starter-nodejs:*
ELASTICSEARCH_URL: http://elasticsearch:9200
JWT_SECRET: not_very_secret
MAILER_URL: smtp://mailhog:1025
NODE_ENV: development
REDIS_URL: redis://redis:6379
SKIP_MIGRATIONS: 'true'
volumes:
- .:/app
- /app/node_modules
volumes:
elasticsearch_data:
mariadb_data:
minio_data:
redis_data: