2022-11-10 00:12:34 +05:30
|
|
|
services:
|
2022-12-30 22:32:49 +05:30
|
|
|
segfaultapi:
|
|
|
|
container_name: segfaultapi
|
|
|
|
#image: realprojectsegfault/segfaultapi
|
2022-11-10 00:12:34 +05:30
|
|
|
restart: always
|
2022-12-30 22:32:49 +05:30
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile
|
2022-11-10 00:12:34 +05:30
|
|
|
ports:
|
2022-12-30 22:32:49 +05:30
|
|
|
- 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:
|