-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
64 lines (63 loc) · 1.83 KB
/
docker-compose.yaml
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
version: '2'
services:
searchtelegram:
image: daocloud.io/knarfeh/searchtelegramdev:latest
build:
context: .
dockerfile: ./.docker/.dev.dockerfile
volumes:
- ./conf/nginx_nohttps.conf:/etc/nginx/searchtelegram_nginx.conf
# - ./container-data/nginx/static/images:/media/images
- ./server:/go/src/github.com/knarfeh/searchtelegram/server
- ./client:/go/src/github.com/knarfeh/searchtelegram/client
- ./vendor:/go/src/github.com/knarfeh/searchtelegram/vendor
ports:
- "15000:5000"
- "18080:80"
entrypoint: [bash]
tty: true
env_file:
- envs/secret.env
environment:
ESHOSTPORT: 'http://elasticsearch:9200'
REDISHOST: 'redis'
REDISPORT: '6379'
networks:
- searchtelegram
elasticsearch:
build:
context: .
dockerfile: ./conf/es-kibana/dev/elasticsearch/Dockerfile
volumes:
- ./conf/es-kibana/dev/elasticsearch/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- ../searchtelegrambackupdata/root/searchtelegram/container-data/elasticsearch:/usr/share/elasticsearch/data
# - ./container-data/elasticsearch:/usr/share/elasticsearch/data
ports:
- "9200:9200"
- "9300:9300"
environment:
ES_JAVA_OPTS: "-Xmx256m -Xms256m"
networks:
- searchtelegram
kibana:
build:
context: .
dockerfile: ./conf/es-kibana/dev/kibana/Dockerfile
volumes:
- ./conf/es-kibana/dev/kibana/config/:/usr/share/kibana/config
ports:
- "5601:5601"
networks:
- searchtelegram
redis:
image: "redislabs/redisearch:latest"
volumes:
# - ./container-data/redis:/data
- ../searchtelegrambackupdata/redis/st-redis:/data
ports:
- "16379:6379"
networks:
- searchtelegram
networks:
searchtelegram:
driver: bridge