-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (43 loc) · 1005 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (43 loc) · 1005 Bytes
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
version: "3.9"
services:
web:
build: .
ports:
- "3000:3000"
expose:
- "3000"
volumes:
- "./src:/home/node/app/src"
- "./tsconfig.json:/home/node/app/tsconfig.json"
links:
- db
command: "yarn run dev"
environment:
- TYPEORM_CONNECTION=mysql
- TYPEORM_HOST=db
- TYPEORM_USERNAME=root
- TYPEORM_PASSWORD=root-password
- TYPEORM_DATABASE=wikisync
- TYPEORM_PORT=3306
- TYPEORM_SYNCHRONIZE=true
- TYPEORM_LOGGING=true
- TYPEORM_ENTITIES=src/orm/*.ts
- TYPEORM_MIGRATIONS=src/migration/*.ts=value
db:
image: mysql:8.0
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_DATABASE: wikisync
MYSQL_ROOT_PASSWORD: root-password
volumes:
- mysql-datavolume:/var/lib/mysql
ports:
- 3306:3306
adminer:
image: adminer
restart: always
ports:
- 8080:8080
volumes:
mysql-datavolume: