-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
95 lines (88 loc) · 2.41 KB
/
docker-compose.yml
File metadata and controls
95 lines (88 loc) · 2.41 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
version: "2.4"
services:
# mvn-coupon:
# build:
# context: .
# dockerfile: ./couponservice/docker/maven/Dockerfile
# container_name: mvn-coupon
# platform: linux
# isolation: default
# mem_limit: 2G
# mem_reservation: 2G
# environment:
# - TZ=America/Chicago
# - LC_ALL=en_US
# - JAVA_OPTS=-Xmx2g -Xms2g
# - MAVEN_OPTS=-Xmx2g -Xms2g
# volumes:
# - .m2:/root/.m2
# - ./couponservice:/repo
# working_dir: /repo
# entrypoint: mvn -B
# command: clean install -DskipTests
# mvn-product:
# build:
# context: .
# dockerfile: ./productservice/docker/maven/Dockerfile
# container_name: mvn-product
# platform: linux
# isolation: default
# mem_limit: 2G
# mem_reservation: 2G
# environment:
# - TZ=America/Chicago
# - LC_ALL=en_US
# - JAVA_OPTS=-Xmx2g -Xms2g
# - MAVEN_OPTS=-Xmx2g -Xms2g
# volumes:
# - .m2:/root/.m2
# - ./productservice:/repo
# working_dir: /repo
# entrypoint: mvn -B
# command: clean install -DskipTests
# web-db:
# image: mysql:5.6
# container_name: web-db
# mem_limit: 2G
# mem_reservation: 2G
# ports:
# - "3010:3010"
# environment:
# - MYSQL_DATABASE=sample
# - MYSQL_USER=mysql
# - MYSQL_PASSWORD=supersecret
# - MYSQL_ROOT_PASSWORD=supersecret
# volumes:
# - ./docker/mysql/sql:/docker-entrypoint-initdb.d/
# - ./docker/mysql/datadir:/var/lib/mysql
# command: "--default-authentication-plugin=mysql_native_password --lower_case_table_names=1 --character-set-server=utf8 --bind-address 0.0.0.0 --port 3010"
# healthcheck:
# test: "/etc/init.d/mysql status -P3310"
# interval: 2s
# retries: 10
coupon-app:
build:
context: .
dockerfile: ./couponservice/docker/service/Dockerfile
environment:
- TZ=America/Chicago
container_name: coupon-app
image: pradipbabar/coupon-app:latest
mem_limit: 1G
mem_reservation: 1G
ports:
- "8090:8090"
# depends_on:
# - mvn-coupon
# product-app:
# build:
# context: .
# dockerfile: ./productservice/docker/service/Dockerfile
# container_name: product-app
# image: pradipbabar/product-app:latest
# mem_limit: 1G
# mem_reservation: 1G
# ports:
# - "8091:8091"
# depends_on:
# - mvn-product