-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
53 lines (52 loc) · 1.21 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
version: "3.5"
services:
app:
image: sample-node
build:
context: .
dockerfile: Dockerfile
command: ["yarn", "start"]
ports:
- "1802:1802"
volumes:
- ./src:/app/src
environment:
APP_PORT: 1802
JWT_SECRET: abcdef123456
DB_HOST: db
DB_PORT: 3306
DB_NAME: TMS
DB_USER: admin
DB_PASSWORD: etc12345
networks:
samplenode:
depends_on:
- db
db:
image: mysql
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: etc12345
MYSQL_DATABASE: TMS
MYSQL_USER: admin
MYSQL_PASSWORD: etc12345
ports:
- 3306:3306
volumes:
- dbdata:/var/lib/mysql
- ./dbseeder:/docker-entrypoint-initdb.d
networks:
samplenode:
aliases:
- db
adminer:
image: adminer
restart: always
depends_on:
- db
ports:
- 8080:8080
networks:
samplenode:
volumes:
dbdata: