-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
43 lines (40 loc) · 965 Bytes
/
docker-compose.yaml
File metadata and controls
43 lines (40 loc) · 965 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
version: '3'
services:
app:
build:
context: ./node
container_name: app
entrypoint: dockerize -wait tcp://db:3306 -timeout 60s node index.js
networks:
- node-network
volumes:
- ./node:/usr/src/app
- /usr/src/app/node_modules
tty: true
depends_on:
- db
ports:
- "3000:3000"
db:
build:
context: ./mysql
command: --innodb-use-native-aio=0
container_name: db
restart: always
tty: true
environment:
- MYSQL_DATABASE=node_db
- MYSQL_ROOT_PASSWORD=root
networks:
- node-network
nginx:
build:
context: ./nginx
image: javielrezende/nginx
container_name: nginx
depends_on:
- app
networks:
- node-network
ports:
- "8080:80"