From 774d5b4c538d93889bf743b6cd7d01a85f8715e6 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Fri, 25 Feb 2022 17:25:10 +0100 Subject: feat: use Docker in production (#12) * build: add experimental feature outputStandalone With this option, Next.js can create a standalone folder with the necessary files for a production deployment. It will be useful for Docker deployment. * chore: add Docker configuration * docs: update README with Docker instructions --- docker-compose.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 docker-compose.yml (limited to 'docker-compose.yml') diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..c8d675b --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,25 @@ +version: '3.8' +services: + apcom: + build: + context: . + dockerfile: Dockerfile + args: + DOCKER_PORT: ${APP_DOCKER_PORT_PROD:-3000} + container_name: apcom + env_file: + - .env + ports: + - '${APP_DOCKER_PORT_PROD:-3000}:${APP_DOCKER_PORT_PROD:-3000}' + restart: always + apcom-dev: + build: + context: . + dockerfile: Dockerfile + args: + DOCKER_PORT: ${APP_DOCKER_PORT_DEV:-3200} + container_name: apcom-dev + env_file: + - .env + ports: + - '${APP_DOCKER_PORT_DEV:-3200}:${APP_DOCKER_PORT_DEV:-3200}' -- cgit v1.2.3