-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
57 lines (50 loc) · 1.31 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
version: "2"
services:
consul:
command: -server -bootstrap
image: gliderlabs/consul-server
mem_limit: 64m
ports:
- "8300"
- "8400"
- "8500:8500"
- "53"
nginx:
image: openlmis/nginx:${OL_NGINX_VERSION}
env_file: settings.env
links: [consul]
mem_limit: 64m
# Note: network_mode: host will break the build since we're using container communication
referencedata:
image: openlmis/referencedata:${OL_REFERENCEDATA_VERSION}
env_file: settings.env
mem_limit: 1024m
environment:
JAVA_OPTS: '-Xmx1024m -Dlogging.config=/logback.xml'
spring_profiles_active: demo-data,refresh-db
volumes:
- './logback.xml:/logback.xml'
depends_on: [log]
auth:
image: openlmis/auth:${OL_AUTH_VERSION}
env_file: settings.env
mem_limit: 512m
environment:
JAVA_OPTS: '-Xmx512m -Dlogging.config=/logback.xml'
spring_profiles_active: demo-data,refresh-db
volumes:
- './logback.xml:/logback.xml'
depends_on: [log]
redis:
mem_limit: 64m
image: redis:3.2.12
depends_on: [log]
db:
mem_limit: 512m
image: openlmis/postgres:${OL_POSTGRES_VERSION}
env_file: settings.env
depends_on: [consul]
log:
mem_limit: 64m
image: openlmis/rsyslog:${OL_RSYSLOG_VERSION}
depends_on: [consul]