website/compose.yml

28 lines
740 B
YAML
Raw Normal View History

2022-11-10 00:12:34 +05:30
services:
segfaultapi:
container_name: segfaultapi
#image: realprojectsegfault/segfaultapi
2022-11-10 00:12:34 +05:30
restart: always
build:
context: .
dockerfile: Dockerfile
2022-11-10 00:12:34 +05:30
ports:
- 6893:6893
volumes:
- ./config:/app/config
segfaultapi-db:
image: mongo
container_name: segfaultapi-db
restart: always
ports:
- 27017:27017
volumes:
- segfaultapi-db-data:/data/db
environment:
MONGO_INITDB_ROOT_USERNAME: $MONGO_USER
MONGO_INITDB_ROOT_PASSWORD: $MONGO_PASSWORD
MONGO_INITDB_DATABASE: segfaultapi
command: [--auth]
volumes:
segfaultapi-db-data: