1 changed files with 39 additions and 19 deletions
@ -1,36 +1,56 @@ |
|||||
services: |
services: |
||||
textbee-web: |
|
||||
image: ghcr.io/vernu/textbee/web:latest |
|
||||
container_name: textbee-web |
|
||||
build: |
|
||||
|
web: |
||||
|
container_name: web |
||||
|
build: |
||||
context: ./web |
context: ./web |
||||
dockerfile: Dockerfile |
dockerfile: Dockerfile |
||||
ports: |
ports: |
||||
- "3000:3000" |
- "3000:3000" |
||||
env_file: |
|
||||
- path: ./web/.env |
|
||||
required: true |
|
||||
command: pnpm start |
|
||||
textbee-api: |
|
||||
image: ghcr.io/vernu/textbee/api:latest |
|
||||
container_name: textbee-api |
|
||||
build: |
|
||||
|
depends_on: |
||||
|
- mongo |
||||
|
environment: |
||||
|
NODE_ENV: production |
||||
|
|
||||
|
api: |
||||
|
container_name: api |
||||
|
build: |
||||
context: ./api |
context: ./api |
||||
dockerfile: Dockerfile |
dockerfile: Dockerfile |
||||
|
target: prod |
||||
ports: |
ports: |
||||
- "3005:3005" |
- "3005:3005" |
||||
env_file: |
|
||||
- path: ./api/.env |
|
||||
required: true |
|
||||
depends_on: |
depends_on: |
||||
- textbee-db |
|
||||
textbee-db: |
|
||||
|
- mongo |
||||
|
environment: |
||||
|
NODE_ENV: production |
||||
|
|
||||
|
mongo: |
||||
|
container_name: mongo |
||||
image: mongo |
image: mongo |
||||
container_name: textbee-db |
|
||||
|
restart: always |
||||
|
ports: |
||||
|
- "27017:27017" |
||||
|
environment: |
||||
|
MONGO_INITDB_ROOT_USERNAME: adminUser |
||||
|
MONGO_INITDB_ROOT_PASSWORD: adminPassword |
||||
|
MONGO_INITDB_DATABASE: TextBee |
||||
volumes: |
volumes: |
||||
- textbee-db-data:/data/db |
- textbee-db-data:/data/db |
||||
|
# THe following scripts creates TextBee DB automatically, also the user which web and api are connecting with. |
||||
|
- ./mongo-init:/docker-entrypoint-initdb.d:ro |
||||
|
mongo-express: |
||||
|
container_name: mongo-ee |
||||
|
image: mongo-express |
||||
|
restart: always |
||||
ports: |
ports: |
||||
- "27017:27017" |
|
||||
|
- "8081:8081" |
||||
|
environment: |
||||
|
ME_CONFIG_MONGODB_ADMINUSERNAME: adminUser |
||||
|
ME_CONFIG_MONGODB_ADMINPASSWORD: adminPassword |
||||
|
ME_CONFIG_MONGODB_URL: mongodb://adminUser:adminPassword@mongo:27017/ |
||||
|
ME_CONFIG_BASICAUTH: "false" |
||||
|
depends_on: |
||||
|
- mongo |
||||
|
|
||||
volumes: |
volumes: |
||||
textbee-db-data: |
textbee-db-data: |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue