mirror of
https://github.com/ProjectSegfault/website.git
synced 2024-11-16 05:03:05 +05:30
28 lines
740 B
YAML
28 lines
740 B
YAML
services:
|
|
segfaultapi:
|
|
container_name: segfaultapi
|
|
#image: realprojectsegfault/segfaultapi
|
|
restart: always
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
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: |