-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·48 lines (46 loc) · 993 Bytes
/
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
version: '3'
services:
redis:
container_name: cheffy-redis-container
image: redis:5.0
restart: always
hostname: cheffy-redis
command: redis-server --port 6380
ports:
- "6380:6380"
expose:
- 6380
networks:
- default
mysql:
container_name: cheffy-mysql-container
image: mysql:5.7.28
restart: always
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD= yes
command: mysqld --port 3308
ports:
- "3308:3308"
expose:
- 3308
networks:
- default
backend-api:
container_name: cheffy-app
environment:
- PORT=9009
- DOCKER_MODE=true
#- DEBUG=server
build: .
networks:
- default
links:
- redis:cheffy-redis-container
- mysql:cheffy-mysql-container
ports:
- "9009:9009"
#volumes:
#- .:/var/www/app
#- /var/www/app/node_modules
#command: "npx pm2-runtime start ecosystem.config.js"
command: "node ./bin/server.js"