diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-02-25 17:25:10 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-25 17:25:10 +0100 |
| commit | 774d5b4c538d93889bf743b6cd7d01a85f8715e6 (patch) | |
| tree | ece773efb8f625a05b0d8304ce610cf2e51368f0 /docker-compose.yml | |
| parent | 2f1de56509948e4aecac058adeb07c3502bdf818 (diff) | |
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
Diffstat (limited to 'docker-compose.yml')
| -rw-r--r-- | docker-compose.yml | 25 |
1 files changed, 25 insertions, 0 deletions
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}' |
