29 lines
667 B
YAML
29 lines
667 B
YAML
version: "3.8"
|
|
|
|
services:
|
|
mongo:
|
|
image: mongo
|
|
container_name: bsition-mongo
|
|
environment:
|
|
- MONGO_INITDB_ROOT_USERNAME=root
|
|
- MONGO_INITDB_ROOT_PASSWORD=password
|
|
restart: unless-stopped
|
|
ports:
|
|
- "27017:27017"
|
|
volumes:
|
|
- ./mongo_data/db:/data/db
|
|
- ./mongo_data/dev.archive:/Databases/dev.archive
|
|
- ./mongo_data/production:/Databases/production
|
|
|
|
postgres:
|
|
image: postgres
|
|
container_name: bsition-postgres
|
|
ports:
|
|
- "5432:5432"
|
|
environment:
|
|
POSTGRES_USER: root
|
|
POSTGRES_PASSWORD: password
|
|
POSTGRES_DB: bd2
|
|
volumes:
|
|
- ./postgres_data:/var/lib/postgresql/data
|