mirror of
https://github.com/tarampampam/error-pages.git
synced 2024-08-30 18:22:40 +00:00
20 lines
674 B
YAML
20 lines
674 B
YAML
# yaml-language-server: $schema=https://cdn.jsdelivr.net/gh/compose-spec/compose-spec@master/schema/compose-spec.json
|
|
|
|
services:
|
|
develop:
|
|
build: {target: develop}
|
|
environment: {HOME: /tmp}
|
|
volumes: [.:/src:rw, tmp-data:/tmp:rw]
|
|
security_opt: [no-new-privileges:true]
|
|
|
|
web:
|
|
build: {target: runtime}
|
|
ports: ['8080:8080/tcp'] # open http://127.0.0.1:8080
|
|
command: --log-level debug serve --show-details --proxy-headers=X-Foo,Bar,Baz_blah
|
|
develop: # available since docker compose v2.22, https://docs.docker.com/compose/file-watch/
|
|
watch: [{action: rebuild, path: .}]
|
|
security_opt: [no-new-privileges:true]
|
|
|
|
volumes:
|
|
tmp-data: {}
|