Make the current app run in its own docker compose environment

This commit is contained in:
Sugui 2024-01-26 19:12:47 +01:00
parent 1e0c494160
commit d64855c950
2 changed files with 48 additions and 1 deletions

44
compose.yaml Normal file
View File

@ -0,0 +1,44 @@
version: "3"
services:
# mongodb:
# image: mongo:bionic
# container_name: mongodb
# ports:
# - "27017:27017"
# environment:
# MONGO_INITDB_ROOT_USERNAME: root
# MONGO_INITDB_ROOT_PASSWORD: password
# MONGO_INITDB_DATABASE: bot
# volumes:
# - mongodb_data:/data/db
# bot-api:
# image: oven/bun:1
# container_name: bot-api
# command: bun run docker-dev
# working_dir: /usr/src/app
# ports:
# - "8080:8080"
# depends_on:
# - mongodb
# environment:
# MONGODB_URI: "mongodb://mongodb:27017/bot"
# MONGODB_USER: "root"
# MONGODB_PASS: "password"
# JWTSECRET: "cooljwtsecret"
# volumes:
# - ./:/usr/src/app:ro
bot-image-moderation-fe:
image: oven/bun:1
container_name: bot-image-moderation-fe
command: bun run dev --host
working_dir: /usr/src/app
ports:
- "8081:8081"
volumes:
- ./:/usr/src/app
volumes:
mongodb_data:

View File

@ -4,4 +4,7 @@ import react from '@vitejs/plugin-react-swc'
// https://vitejs.dev/config/ // https://vitejs.dev/config/
export default defineConfig({ export default defineConfig({
plugins: [react()], plugins: [react()],
server: {
port: 8081,
},
}) })