-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (51 loc) · 1.01 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
version: '3'
services:
mysql:
image: mysql
restart: always
container_name: mysql
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: root
volumes:
- ./db/init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
- order-network
redis:
image: redis:latest
ports:
- 6379:6379
networks:
- order-network
order-item-api:
image: order-item-api
container_name: order-item-api
build:
context: ./order-item-api
dockerfile: Dockerfile.dev
volumes:
- ./order-item-api:/order-item-api
depends_on:
- redis
- mysql
links:
- redis
- mysql
environment:
PORT: 8081
MYSQL_HOST: mysql
MYSQL_PORT: "3306"
MYSQL_USERNAME: test
MYSQL_PASSWORD: test
MYSQL_DATABASE: order
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_NAMESPACE: 'order-item-api'
NODE_ENV: development
ports:
- 8081:8081
networks:
- order-network
networks:
order-network: