mirror of
https://github.com/tiennm99/composes.git
synced 2026-10-04 16:13:42 +00:00
Coolify injects the same value when a compose service omits one, but Dokploy runs the file as written, so in its default compose mode an omitted policy leaves the container down after a crash or a host reboot.
25 lines
613 B
YAML
25 lines
613 B
YAML
services:
|
|
opencode-web:
|
|
build: .
|
|
restart: unless-stopped
|
|
command:
|
|
- web
|
|
- '--hostname'
|
|
- 0.0.0.0
|
|
- '--port'
|
|
- '4096'
|
|
environment:
|
|
- OPENCODE_SERVER_PASSWORD=${OPENCODE_SERVER_PASSWORD}
|
|
- OPENCODE_SERVER_USERNAME=${OPENCODE_SERVER_USERNAME}
|
|
- TZ=Asia/Ho_Chi_Minh
|
|
- GIT_AUTHOR_NAME=${GIT_NAME}
|
|
- GIT_AUTHOR_EMAIL=${GIT_EMAIL}
|
|
- GIT_COMMITTER_NAME=${GIT_NAME}
|
|
- GIT_COMMITTER_EMAIL=${GIT_EMAIL}
|
|
volumes:
|
|
- 'opencode-home:/root'
|
|
- 'opencode-workspace:/workspace'
|
|
volumes:
|
|
opencode-home:
|
|
opencode-workspace:
|