-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
70 lines (67 loc) · 1.62 KB
/
docker-compose.yml
File metadata and controls
70 lines (67 loc) · 1.62 KB
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
services:
backend:
build:
context: .
dockerfile: Dockerfile
ports:
- "8080:8080"
restart: always
depends_on:
db:
condition: service_healthy
db:
image: mysql/mysql-server:8.0
container_name: devpass-db
restart: always
command:
- --default-authentication-plugin=mysql_native_password
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_520_ci
environment:
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_DATABASE: ${DB_DATABASE}
ports:
- '3306:3306'
volumes:
- db_vol:/var/lib/mysql
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "--password=${DB_ROOT_PASSWORD}" ]
interval: 10s
timeout: 5s
retries: 5
mongodb:
image: mongo:5.0
container_name: devpass-mongo
restart: always
ports:
- "27017:27017"
volumes:
- mongo_data:/data/db
environment:
MONGO_INITDB_DATABASE: devpass
networks:
- default
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.11.1
container_name: devpass-elasticsearch
ports:
- '9200:9200'
environment:
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- xpack.security.enabled=false
- xpack.security.transport.ssl.enabled=false
volumes:
- esdata:/usr/share/elasticsearch/data
volumes:
db_vol:
driver: local
mongo_data:
driver: local
esdata:
driver: local
networks:
default:
name: devpass-network