Previously, an image built for the `build` service was then used for `server`, and changes were invisible to the user before the container rebuild. After that change, the useless static `build` service is deleted, Dockerfile is only used in the CI pipeline, and only the `server` service is left in docker-compose for the user to test and see documentation changes locally in real-time. Resolves #1178
23 lines
370 B
YAML
23 lines
370 B
YAML
version: '2'
|
|
services:
|
|
# Runs dev env for the site
|
|
server:
|
|
image: remark42-site:dev
|
|
build:
|
|
dockerfile: Dockerfile.dev
|
|
context: .
|
|
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: '10m'
|
|
max-file: '5'
|
|
|
|
ports:
|
|
- '3001:3001'
|
|
- '8080:8080'
|
|
|
|
volumes:
|
|
- ./src:/site/src
|
|
- ./build:/site/build
|