-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
70 lines (66 loc) · 1.49 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
version: '3.4'
services:
mysql:
image: mysql
restart: always
command: --default-authentication-plugin=mysql_native_password
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=stagiop
- MYSQL_USER=stagiop
- MYSQL_PASSWORD=h3lloWorld
ports:
- 3326:3306
# mongodb:
# image: mongo
# restart: always
# environment:
# - MONGO_INITDB_ROOT_USERNAME=root
# - MONGO_INITDB_ROOT_PASSWORD=root
# - MONGO_INITDB_DATABASE=stagiop
# ports:
# - 27017:27017
nginx:
restart: always
depends_on:
- api
- app
build:
dockerfile: Dockerfile.dev
context: ./nginx
ports:
- '3050:80'
api:
depends_on:
- mysql
build:
dockerfile: Dockerfile.dev
context: ./api
volumes:
- ./api:/usr/ts2/api
- /usr/ts2/api/node_modules
environment:
- NODE_ENV=development
- PORT=5000
- TYPEORM_CONNECTION=mysql
- TYPEORM_HOST=mysql
- TYPEORM_PORT=3306
- TYPEORM_USERNAME=stagiop
- TYPEORM_PASSWORD=h3lloWorld
- TYPEORM_DATABASE=stagiop
- TYPEORM_SYNCHRONIZE=true
- TYPEORM_ENTITIES=src/domain/entity/*.js
- TYPEORM_LOGGING=true
- MONGODB_URI=${MONGODB_URI}
- MONGODB_HOST=${MONGODB_HOST}
ports:
- 5000:5000
app:
depends_on:
- api
build:
dockerfile: Dockerfile.dev
context: ./app
volumes:
- ./app:/usr/ts2/app
- /usr/ts2/app/node_modules