File tree Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -7,18 +7,11 @@ networks:
77 driver : overlay
88 attachable : true
99services :
10- exec :
11- image : koromerzhin/nodejs:15.1.0
12- volumes :
13- - ${PWD}/app:/app
14- command : sh -c "npm install"
15- deploy :
16- restart_policy :
17- condition : none
18- labels :
19- - " traefik.enable=false"
2010 www :
21- image : koromerzhin/nodejs:15.1.0
11+ image : node:17.4.0
12+ working_dir : /app
13+ command : >
14+ sh -c "npm install && npm run start"
2215 volumes :
2316 - ${PWD}/app:/app
2417 networks :
@@ -28,4 +21,4 @@ services:
2821 labels :
2922 - " traefik.enable=true"
3023 - " traefik.http.routers.expressjs.rule=HostRegexp(`expressjs.traefik.me`, `expressjs.{ip:.*}.traefik.me`)"
31- - " traefik.http.services.expressjs.loadbalancer.server.port=3000"
24+ - " traefik.http.services.expressjs.loadbalancer.server.port=3000"
You can’t perform that action at this time.
0 commit comments