-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
62 lines (54 loc) · 1.22 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
version: '3.1'
services:
mysql:
image: mysql
networks:
- localhost
ports:
- 3306:3306
volumes:
- ./mysql/conf:/etc/mysql/conf.d
- ./mysql/init:/docker-entrypoint-initdb.d
environment:
MYSQL_ROOT_PASSWORD: root
postgres:
image: postgres
networks:
- localhost
ports:
- 5432:5432
environment:
POSTGRES_PASSWORD: postgres
redis:
image: redis
networks:
- localhost
ports:
- 6379:6379
tomcat:
image: tomcat
networks:
- localhost
ports:
- 8080:8080
volumes:
- ./tomcat/webapps:/usr/local/tomcat/webapps:ro
nginx:
image: nginx
networks:
- localhost
ports:
- 80:80
volumes:
- ./nginx/conf:/etc/nginx/conf.d:ro
- ./nginx/html:/etc/nginx/html:ro
elastic:
image: elasticsearch
networks:
- localhost
ports:
- 9200:9200
volumes:
- ./elastic/data:/usr/share/elasticsearch/data
networks:
localhost: