-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
69 lines (64 loc) · 1.48 KB
/
docker-compose.yml
File metadata and controls
69 lines (64 loc) · 1.48 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
version: '3.8'
services:
mysql:
image: mysql:latest
container_name: x-mysql
restart: always
hostname: x_mysql_host
ports:
- "33061:3306"
volumes:
- x_mysql_data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: "#081Root"
redis:
image: redis:7-alpine
container_name: x-redis
restart: always
hostname: x_redis_host
ports:
- '6379:6379'
command: redis-server --save 20 1 --loglevel warning
volumes:
- x_redis_data:/data
exchange-rate-service:
container_name: exchange-rate-service
restart: always
build:
context: ./exchange-rate-api
dockerfile: Dockerfile
target: development
ports:
- "3333:3333"
- "9229:9229"
env_file:
- ./exchange-rate-api/.env
volumes:
- ./exchange-rate-api:/home/node/app
- /home/node/app/node_modules
command: dumb-init node ace serve --watch --node-args="--inspect=0.0.0.0"
depends_on:
- redis
user-api-service:
container_name: user-api-service
restart: always
build:
context: ./user-api
dockerfile: Dockerfile
target: development
ports:
- "3334:3334"
- "9228:9229"
env_file:
- ./user-api/.env
volumes:
- ./user-api:/home/node/app
- /home/node/app/node_modules
command: dumb-init node ace serve --watch --node-args="--inspect=0.0.0.0"
depends_on:
- redis
- mysql
volumes:
x_redis_data:
driver: local
x_mysql_data: