38 lines
684 B
YAML
38 lines
684 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
mongo:
|
|
image: mongo:6.0
|
|
container_name: mongodb
|
|
restart: always
|
|
ports:
|
|
- "27017:27017"
|
|
volumes:
|
|
- mongo-data:/data/db
|
|
environment:
|
|
MONGO_INITDB_ROOT_USERNAME: root
|
|
MONGO_INITDB_ROOT_PASSWORD: example
|
|
|
|
backend:
|
|
image: mizuki/backend
|
|
container_name: backend
|
|
restart: always
|
|
ports:
|
|
- "3000:3000"
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
env_file: ".env"
|
|
|
|
frontend:
|
|
image: mizuki/frontend
|
|
container_name: frontend
|
|
restart: always
|
|
ports:
|
|
- "5173:5173"
|
|
build:
|
|
context: ./frontend/
|
|
dockerfile: Dockerfile
|
|
|
|
volumes:
|
|
mongo-data:
|