tibi-svelte-starter/docker-compose-local.yml

98 lines
3.4 KiB
YAML
Raw Normal View History

2022-09-15 17:56:54 +02:00
version: "3.8"
name: tibi-svelte-starter-local
services:
yarnstart:
image: node:18
2022-10-11 16:10:53 +02:00
# environment:
# - YARN_CACHE_FOLDER=/data/tmp/yarn
2022-09-15 17:56:54 +02:00
volumes:
- ./:/data
2022-10-11 16:10:53 +02:00
working_dir: /data
command: sh -c "yarn install && API_BASE=http://tibiserver:8080/api/v1/_/${TIBI_NAMESPACE} yarn start"
2022-09-15 17:56:54 +02:00
# ports:
# - ${PORT:-3000}:3000
# - ${BROWSERSYNC_PORT:-4001}:3001
expose:
- 3000
labels:
- traefik.enable=true
- online.testversion.code.subdomain=${PROJECT_NAME}
- traefik.http.routers.${PROJECT_NAME}-yarnstart.middlewares=${PROJECT_NAME}-yarnstart
- traefik.http.middlewares.${PROJECT_NAME}-yarnstart.basicauth.usersfile=${PWD}/.basic-auth-web
2022-10-11 16:10:53 +02:00
user: ${UID}:${GID}
2022-09-15 17:56:54 +02:00
tibiserver:
image: gitbase.de/cms/tibi-server
volumes:
- ./:/data
environment:
# DB_DIAL: mongodb://root:root@mongo/admin
DB_DIAL: mongodb://mongo
DB_PREFIX: ${TIBI_PREFIX}
MAIL_HOST: maildev:25
depends_on:
- mongo
tibiadmin:
image: gitbase.de/cms/tibi-admin
environment:
INDEX: spa.html
WEBROOT: /data
API: /api:http://tibiserver:8080/api/v1
PORT: 80
depends_on:
- tibiserver
# ports:
# - ${ADMIN_PORT:-3002}:80
expose:
- 80
labels:
- traefik.enable=true
- online.testversion.code.subdomain=${PROJECT_NAME}-tibiadmin
- traefik.http.routers.${PROJECT_NAME}-tibiadmin.middlewares=${PROJECT_NAME}-tibiadmin
- traefik.http.middlewares.${PROJECT_NAME}-tibiadmin.basicauth.usersfile=${PWD}/.basic-auth-code
mongo:
image: gitbase.de/server/mongo:4.2
volumes:
- ./tmp/mongo-data:/data/db
# command: mongod --logpath=/dev/null
# environment:
# MONGO_INITDB_ROOT_USERNAME: root
# MONGO_INITDB_ROOT_PASSWORD: root
2022-10-11 16:10:53 +02:00
user: ${UID}:${GID}
2022-09-15 17:56:54 +02:00
adminmongo:
image: gitbase.de/server/adminmongo
environment:
CONN_NAME: mongo
# DB_USERNAME: root
# DB_PASSWORD: root
DB_HOST: mongo
PORT: 1234
# ports:
# - ${ADMINMONGO_PORT:-3003}:1234
expose:
- 1234
labels:
- traefik.enable=true
- online.testversion.code.subdomain=${PROJECT_NAME}-adminmongo
- traefik.http.routers.${PROJECT_NAME}-adminmongo.middlewares=${PROJECT_NAME}-adminmongo
- traefik.http.middlewares.${PROJECT_NAME}-adminmongo.basicauth.usersfile=${PWD}/.basic-auth-code
maildev:
image: maildev/maildev
restart: always
# ports:
# - ${MAILDEV_PORT:-3004}:80
command: node bin/maildev --web 1080 --smtp 25 -v --hide-extensions=STARTTLS
expose:
- 1080
labels:
- traefik.enable=true
- online.testversion.code.subdomain=${PROJECT_NAME}-maildev
- traefik.http.services.${PROJECT_NAME}-maildev.loadbalancer.server.port=1080
- traefik.http.routers.${PROJECT_NAME}-maildev.middlewares=${PROJECT_NAME}-maildev
- traefik.http.middlewares.${PROJECT_NAME}-maildev.basicauth.usersfile=${PWD}/.basic-auth-code