-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
48 lines (45 loc) · 949 Bytes
/
docker-compose.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
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
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/
- ./cliient/tests/:/app/tests/
ports:
- "3000:3000"