-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
85 lines (84 loc) · 2.13 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
version: '3'
services:
# nginx:
# image: nginx:alpine
# ports:
# - "8080:80"
# volumes:
# - .:/src
# - ./config/nginx:/etc/nginx/conf.d
# depends_on:
# - web
db:
image: postgres:alpine
ports:
- "5432:5432"
web:
build: ./web
command: /bin/bash -c "sleep 7;python3 manage.py runserver 0.0.0.0:8000"
#command: /bin/bash -c "sleep 7;uwsgi uwsgi.ini"
volumes:
- ./web:/code
ports:
- "8000:8000"
- "9091:9091"
depends_on:
- db
- codegen
- coupon-qr-gen
- memcahced
entrypoint: /code/entrypoint.sh
es:
image: elasticsearch:2.4-alpine
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
mem_limit: 1g
volumes:
- ./esdata:/usr/share/elasticsearch/data
ports:
- "9200:9200"
- "9300:9300"
redis:
image: redis:alpine
ports:
- "6379:6379"
codegen:
build: ./codegen
depends_on:
- redis
ports:
- "8081:8081"
volumes:
- ./codegen:/go/src/codegen
command: /bin/ash -c "go build; ./codegen"
mongo:
image: mongo:3.4
ports:
- "27017:27017"
notification:
build: './notification_server'
ports:
- '8080:8080'
volumes:
- ./notification_server:/application
command: node server.js
entrypoint: /application/entrypoint.sh
coupon-qr-gen:
build: ./coupon-qr-gen
depends_on:
- redis
ports:
- "8082:8082"
volumes:
- ./coupon-qr-gen:/go/src/coupon-qr-gen
command: /bin/ash -c "go build; ./coupon-qr-gen"
memcahced:
image: memcached:alpine
ports:
- "11211:11211"