2024-09-25 16:16:34 +00:00
|
|
|
services:
|
|
|
|
devcontainer:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
|
|
|
|
# Required for ptrace-based debuggers like C++, Go, and Rust
|
|
|
|
cap_add:
|
|
|
|
- SYS_PTRACE
|
|
|
|
security_opt:
|
|
|
|
- seccomp:unconfined
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
- ../..:/workspaces/:cached
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
|
|
network_mode: service:ejabberd_server # To access ejabberd inside a devcontainer
|
|
|
|
command: sleep infinity # To keep container alive
|
|
|
|
depends_on:
|
|
|
|
- ejabberd_server
|
|
|
|
|
|
|
|
ejabberd_server:
|
|
|
|
image: ghcr.io/processone/ejabberd
|
|
|
|
container_name: ejabberd
|
2024-09-28 19:15:31 +00:00
|
|
|
pull_policy: always # Do not use cache for ejabberd
|
|
|
|
|
2024-09-25 16:16:34 +00:00
|
|
|
environment:
|
2024-09-28 19:15:31 +00:00
|
|
|
- CTL_ON_CREATE=register admin localhost admin ;
|
|
|
|
register test1 localhost test1
|
2024-09-25 16:16:34 +00:00
|
|
|
- CTL_ON_START=registered_users localhost ;
|
2024-09-28 19:15:31 +00:00
|
|
|
status ;
|
|
|
|
check_password test1 localhost test1 ;
|
|
|
|
help accounts
|
|
|
|
|
2024-09-25 16:16:34 +00:00
|
|
|
ports:
|
|
|
|
- "5222:5222"
|
|
|
|
- "5269:5269"
|
|
|
|
- "5280:5280"
|
|
|
|
- "5443:5443"
|
|
|
|
volumes:
|
|
|
|
- ./ejabberd.yml:/opt/ejabberd/conf/ejabberd.yml:ro
|