Skip to content

Commit d258a46

Browse files
committed
Docker compose
1 parent 2662004 commit d258a46

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

backend_node/.env.example

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
HOST=127.0.0.1
1+
HOST=0.0.0.0
22
PORT=8082
33
NODE_ENV=development
44

@@ -17,3 +17,4 @@ DB_PASSWORD=
1717
DB_DATABASE=adonis
1818

1919
HASH_DRIVER=bcrypt
20+
REDIS_CONNECTION=local

backend_node/config/redis.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ module.exports = {
3232
|
3333
*/
3434
local: {
35-
host: '127.0.0.1',
35+
host: 'redis',
3636
port: 6379,
3737
password: null,
3838
db: 0,

docker-compose.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ services:
55
image: "node:12"
66
volumes:
77
- "./backend_node/:/home/node/app"
8+
environment:
9+
- HOST=0.0.0.0 # listen on all interfaces
810
expose:
911
- "8082"
1012
command: bash -c "
@@ -27,7 +29,7 @@ services:
2729
expose:
2830
- "8080"
2931
command: bash -c "
30-
npm install -g @quasar/cli && npm install -g yarn && yarn && quasar dev
32+
npm install -g @quasar/cli && yarn && quasar dev
3133
"
3234
working_dir: /home/node/app
3335
ports:

0 commit comments

Comments
 (0)