diff --git a/docker-compose.yml b/docker-compose.yml index 46a4f9629..4e8311bc2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,7 +4,9 @@ networks: driver: bridge services: adminer: - image: adminer + build: + context: . + dockerfile: ./docker/adminer/Dockerfile restart: always networks: - nocobase @@ -28,7 +30,7 @@ services: nocobase: build: context: . - dockerfile: Dockerfile + dockerfile: ./docker/nocobase/Dockerfile networks: - nocobase command: [ "yarn", "start" ] diff --git a/docker/adminer/Dockerfile b/docker/adminer/Dockerfile new file mode 100644 index 000000000..4d6f300a2 --- /dev/null +++ b/docker/adminer/Dockerfile @@ -0,0 +1,6 @@ +FROM adminer + +USER root +CMD [ "php", "-S", "[::]:8080", "-t", "/var/www/html" ] + +EXPOSE 8080 \ No newline at end of file diff --git a/Dockerfile b/docker/nocobase/Dockerfile similarity index 100% rename from Dockerfile rename to docker/nocobase/Dockerfile