/
docker-compose.yml
32 lines (29 loc) · 1.02 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
version: '3.1'
services:
nextjs:
#image: "nextjs-boilerplate:latest"
build:
context: .
target: nextjs
args:
# @@ Environment passed to build and start, can be 'prod' or 'dev'
#
# Most notably 'dev' enables hot-reloading and error reporting.
# SEE: https://nextjs.org/docs/api-reference/cli#development
BUILD_ENV_TYPE: prod
# BUILD_ENV_TYPE: dev
# @@ Type of build to be performed, can be 'dynamic' or 'static'
#
# 'static' will output and host raw HTML and JS on an HTTP server,
# NOTE: API routes are not available when building 'static'.
#
# 'dynamic' will start a full NodeJS server, serving API routes.
# NOTE: Must be 'dynamic' to use BUILD_ENV_TYPE 'prod'
BUILD_TYPE: static
# BUILD_TYPE: dynamic
#NODE_VERSION: current-alpine
#NODE_VERSION: current
HTTPD_VERSION: 2.4
restart: unless-stopped
ports:
- 9000:9000