-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-run.yaml
67 lines (63 loc) · 1.35 KB
/
docker-compose-run.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
65
66
67
version: '3.0'
services:
mysql:
image: mysql:5.7
ports:
- "3306:3306"
restart: always
environment:
MYSQL_DATABASE: shippy
MYSQL_USER: shippy
MYSQL_PASSWORD: getitdone
MYSQL_ROOT_PASSWORD: root
volumes:
- ./.data:/var/lib/mysql
redis:
image: redis:4.0.5-alpine
ports:
- "6379:6379"
command: ["redis-server", "--appendonly", "yes"]
volumes:
- ./.redis:/data
api:
container_name: 'shippy-api'
build:
context: ./api
volumes:
- ./api/src/:/app/src/
- ./api/target/:/app/target/
- ./api/pom.xml:/app/pom.xml
environment:
- MYSQL_HOST=mysql
- REDIS_HOST=redis
- ENROLLMENT_ENDPOINT=http://enrollment:3001/enroll/status/
ports:
- "8080:8080"
entrypoint: ["mvn", "spring-boot:run"]
depends_on:
- redis
- mysql
enrollment:
container_name: 'enrollment'
build:
context: ./enrollment
volumes:
- ./enrollment/src/:/app/src/
- ./enrollment/tests/:/app/tests/
environment:
- MYSQL_HOST=mysql
- PORT=3001
- DEBUG=app:*
ports:
- "3001:3001"
depends_on:
- mysql
client:
container_name: 'client'
build:
context: ./client
volumes:
- ./client/src/:/app/src/
- ./client/tests/:/app/tests/
ports:
- "3000:3000"