All checks were successful
Build, Push and Deploy / build-and-push (push) Successful in 3m3s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 16s
Build, Push and Deploy / deploy-staging (push) Successful in 32s
Build, Push and Deploy / deploy-production (push) Has been skipped
Build, Push and Deploy / cleanup (push) Successful in 1s
20 lines
537 B
Plaintext
20 lines
537 B
Plaintext
mongodb:
|
|
image: 'mongodb/mongodb-atlas-local:latest'
|
|
environment:
|
|
- MONGODB_INITDB_ROOT_USERNAME=${MONGODB_USERNAME:-}
|
|
- MONGODB_INITDB_ROOT_PASSWORD=${MONGODB_PASSWORD:-}
|
|
volumes:
|
|
- 'sail-mongodb:/data/db'
|
|
ports:
|
|
- '${FORWARD_MONGODB_PORT:-27017}:27017'
|
|
networks:
|
|
- sail
|
|
healthcheck:
|
|
test:
|
|
- CMD
|
|
- mongosh
|
|
- 'mongodb://localhost:27017/admin'
|
|
- '--eval=db.runCommand({ping:1})'
|
|
retries: 3
|
|
timeout: 5s
|