From a2f174f687c53ec7965d457a6c9afc2ec6431d05 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Mon, 6 Aug 2018 19:41:57 +0200 Subject: [PATCH] Updated docker-compose files so that they just use an image and don't need the Dockerfile --- docker-compose.override.yml.dist | 10 +++++----- docker-compose.yml | 19 +++++++++---------- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/docker-compose.override.yml.dist b/docker-compose.override.yml.dist index f9ad2f8f..ede39ef0 100644 --- a/docker-compose.override.yml.dist +++ b/docker-compose.override.yml.dist @@ -1,8 +1,8 @@ version: '3' services: - shlink_web_client_node: - user: 1000:1000 - volumes: - - /etc/passwd:/etc/passwd:ro - - /etc/group:/etc/group:ro + shlink_web_client_node: + user: 1000:1000 + volumes: + - /etc/passwd:/etc/passwd:ro + - /etc/group:/etc/group:ro diff --git a/docker-compose.yml b/docker-compose.yml index 5ecdd13d..c3cca438 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,13 +1,12 @@ version: '3' services: - shlink_web_client_node: - container_name: shlink_web_client_node - build: - context: . - dockerfile: ./Dockerfile - volumes: - - ./:/home/shlink/www - ports: - - "3000:3000" - - "56745:56745" + shlink_web_client_node: + container_name: shlink_web_client_node + image: node:10.4.1-alpine + command: /bin/sh -c "cd /home/shlink/www && yarn install && yarn start" + volumes: + - ./:/home/shlink/www + ports: + - "3000:3000" + - "56745:56745"