-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
75 lines (74 loc) · 1.84 KB
/
docker-compose.yml
File metadata and controls
75 lines (74 loc) · 1.84 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
71
72
73
74
75
version: '3'
services:
nginx:
image: nginx:stable-alpine
container_name: nginx
restart: always
networks:
- appstore-network
ports:
- '80:80'
- '443:443'
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./certs:/etc/nginx/certs
command:
- nginx
depends_on:
- app-store-server
app-store-server:
image: yangt1314/app-store-server:v0.1.0-gh
container_name: app-store-server
restart: always
networks:
- appstore-network
links:
- elasticsearch:elasticsearch
ports:
- '8081:8081'
environment:
- GIT_ADDR=https://github.com/almondyoung/test.git
- GIT_BRANCH=dev
- MONGODB_URI=mongodb://root:123456@mongodb:27017
- ES_ADDR=http://elasticsearch:9200
volumes:
- ./wait-for-it.sh:/usr/local/bin/wait-for-it.sh
command:
- /bin/sh
- -c
- |
/usr/local/bin/wait-for-it.sh elasticsearch:9200 -t 120 -- /opt/app/app-store-server -v 4 --logtostderr
depends_on:
- mongodb
- elasticsearch
mongodb:
image: mongo:latest
container_name: mongodb
restart: always
networks:
- appstore-network
ports:
- '27017:27017'
volumes:
- ./volumes/mongo/db:/data/db
- ./volumes/mongo/log:/var/log/mongodb
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=123456
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.8.2
container_name: elasticsearch
restart: always
networks:
- appstore-network
ports:
- '9200:9200'
- '9300:9300'
volumes:
- ./volumes/elasticsearch/data:/usr/share/elasticsearch/data
environment:
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
- xpack.security.enabled=false
networks:
appstore-network: