-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
67 lines (65 loc) · 1.49 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
version: '2.1'
# Services
services:
todo-service:
build: todo-service
mem_limit: 350m
ports:
- "8081:8080"
environment:
- SPRING_PROFILES_ACTIVE=docker
# client-service:
# build: client-service
# mem_limit: 350m
# ports:
# - "8080:8080"
# environment:
# - SPRING_PROFILES_ACTIVE=docker
# should-do-app:
# build: should-do-app
# mem_limit: 350m
# ports:
# - "3001:3000"
# environment:
# - NODE_ENV=development
# user-db:
# image: mysql:5.7
# mem_limit: 350m
# ports:
# - "3308:3306"
# environment:
# - MYSQL_ROOT_PASSWORD=rootpwd
# - MYSQL_DATABASE=user-db
# - MYSQL_USER=user
# - MYSQL_PASSWORD=pwd
# healthcheck:
# test: ["CMD", "mysqladmin", "ping", "-uuser", "-ppwd", "-h", "localhost"]
# interval: 10s
# timeout: 5s
# retries: 10
# volumes:
# - user-data:/var/lib/mysql
todo-db:
image: mysql:5.7
mem_limit: 350m
ports:
- "3307:3306"
environment:
- MYSQL_ROOT_PASSWORD=rootpwd
- MYSQL_DATABASE=todo-db
- MYSQL_USER=user
- MYSQL_PASSWORD=pwd
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-uuser", "-ppwd", "-h", "localhost"]
interval: 10s
timeout: 5s
retries: 10
volumes:
- should-data-2:/var/lib/mysql
command:
- --character-set-server=utf8
- --collation-server=utf8_general_ci
# Volumes
volumes:
should-data-2:
user-data: