Skip to content

Commit

Permalink
fix: refinement of api compose snippet and added a snippet for react
Browse files Browse the repository at this point in the history
  • Loading branch information
brianmcgee committed Mar 31, 2020
1 parent 1cf45d6 commit 365f232
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion compose/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ version: '3.7'
services:

api:
build: image:${NODE_VERSION}
image: node:${NODE_VERSION}
working_dir: /usr/src/app
user: "${USER_ID}:${GROUP_ID}"
command: sh -c "yarn install && yarn start:dev"
Expand All @@ -25,6 +25,9 @@ services:
- ./api:/usr/src/app
networks:
- net
environment:
HOST: 0.0.0.0
PORT: 3000
labels:
- "traefik.enable=true"
- "traefik.http.routers.api.rule=Host(`api.${BASE_DOMAIN}`)"
Expand Down

0 comments on commit 365f232

Please sign in to comment.