diff --git a/.gitpod.yml b/.gitpod.yml index b11f6988ad3c84e899362089eafbc7a600f8fcab..7745381cd7d06635881597540db477adc1542796 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -73,4 +73,9 @@ ports: - port: 9000 onOpen: ignore visibility: public - description: Minio API \ No newline at end of file + description: Minio API + + - port: 3560 + onOpen: ignore + visibility: public + description: Centro API \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index b811849be27763fb382e7614a68f384f525d249e..8cd7680d4aef81a72196d8068805d17f9c64e77e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -207,6 +207,12 @@ services: REACT_APP_HASURA_URL: ${REACT_APP_HASURA_URL} ports: - 3000:80 + + centro: + image: centro + build: packages/centro + ports: + - 3560:3560 networks: db_net: diff --git a/packages/centro/.dockerignore b/packages/centro/.dockerignore new file mode 100644 index 0000000000000000000000000000000000000000..bdfa6b815298631d446ae10b8f2783adb5b49835 --- /dev/null +++ b/packages/centro/.dockerignore @@ -0,0 +1,3 @@ +.env +node_modules +dist \ No newline at end of file diff --git a/packages/centro/Dockerfile b/packages/centro/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..cacfefec2a85f0d810f24213f75ba7d65e506317 --- /dev/null +++ b/packages/centro/Dockerfile @@ -0,0 +1,19 @@ +FROM node:16 + +# Create app directory +WORKDIR /app + +# Install app dependencies +# A wildcard is used to ensure both package.json AND package-lock.json are copied +# where available (npm@5+) +COPY package*.json ./ + +RUN npm install +# If you are building your code for production +# RUN npm ci --omit=dev + +# Bundle app source +COPY . . + +EXPOSE 3560 +CMD [ "npm", "run", "start" ] \ No newline at end of file diff --git a/packages/centro/config/config.json b/packages/centro/config/config.json index d2ad4832034abe2c2fb47bd883ae7a5af369e003..0212e78aff463e5c033e7bdfac50390206257c2a 100644 --- a/packages/centro/config/config.json +++ b/packages/centro/config/config.json @@ -1,6 +1,6 @@ { "name": "Centro", - "port": 3000, + "port": 3560, "enketo": { "api url": "http://localhost:8005/api/v1", "api key": "enketorules"