Hmm...
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2023-05-26 11:22:24 -04:00
parent 6921bea5b5
commit 64c4345c28
3 changed files with 10 additions and 10 deletions

View File

@@ -7,10 +7,7 @@ ARG YARN_VERSION=3.5.0
## mongo build stage ## mongo build stage
FROM mongo:${MONGO_VERSION} AS database FROM mongo:${MONGO_VERSION} AS database
ENV NODE_ENV=${ENV}
ARG MONGO_ENTRY_FILE=${MONGO_ENTRY_FILE:-latest} ARG MONGO_ENTRY_FILE=${MONGO_ENTRY_FILE:-latest}
ENV MONGO_VERSION=${MONGO_VERSION}
RUN echo ${MONGO_ENTRY_FILE} ${MONGO_VERSION} ${NODE_ENV}
COPY docker-entrypoint-initdb.d/mongo-init-${MONGO_ENTRY_FILE}.sh ./docker-entrypoint-initdb.d/mongo-init.sh COPY docker-entrypoint-initdb.d/mongo-init-${MONGO_ENTRY_FILE}.sh ./docker-entrypoint-initdb.d/mongo-init.sh
## stage one, build the service ## stage one, build the service

View File

@@ -9,7 +9,9 @@ services:
context: . context: .
target: database target: database
args: args:
MONGO_VERSION: 4.4 - ENV
- MONGO_ENTRY_FILE: 4.4
- MONGO_VERSION: 4.4
networks: networks:
- auth-backend - auth-backend
volumes: volumes:

View File

@@ -3,29 +3,27 @@ version: '3.8'
services: services:
auth-service_mongo: auth-service_mongo:
container_name: ${CONTAINER_PREFIX}-auth-service_mongo container_name: ${CONTAINER_PREFIX}-auth-service_mongo
env_file:
- staging.env
networks: networks:
- auth-backend
- docknet - docknet
volumes: volumes:
- auth-db:/data - auth-db:/data
restart: unless-stopped restart: unless-stopped
image: mongo:4.4 image: mongo:4.4
auth-service: auth-service:
env_file:
- staging.env
container_name: ${CONTAINER_PREFIX}-auth-service container_name: ${CONTAINER_PREFIX}-auth-service
environment: environment:
- DB_HOST=${CONTAINER_PREFIX}-auth-service_mongo - DB_HOST=${CONTAINER_PREFIX}-auth-service_mongo
labels: labels:
- 'traefik.enable=true' - 'traefik.enable=true'
- 'traefik.http.routers.grow.rule=Host(`${HOST}`) && Path(`${ROUTE_PREFIX}`)' - 'traefik.http.routers.grow.rule=Host(`${HOST}`) && PathPrefix(`${ROUTE_PREFIX}`)'
- 'traefik.http.routers.grow.entrypoints=websecure' - 'traefik.http.routers.grow.entrypoints=websecure'
- 'traefik.http.routers.grow.tls=true' - 'traefik.http.routers.grow.tls=true'
- 'traefik.http.routers.grow.tls.certresolver=letsencrypt' - 'traefik.http.routers.grow.tls.certresolver=letsencrypt'
- 'traefik.http.routers.grow.service=grow-service' - 'traefik.http.routers.grow.service=grow-service'
- 'traefik.http.services.grow-service.loadbalancer.server.port=${PORT}' - 'traefik.http.services.grow-service.loadbalancer.server.port=${PORT}'
networks: networks:
- auth-backend
- docknet - docknet
restart: unless-stopped restart: unless-stopped
depends_on: depends_on:
@@ -33,10 +31,13 @@ services:
image: git.mifi.dev/mifi/auth-service:latest image: git.mifi.dev/mifi/auth-service:latest
networks: networks:
auth-backend:
driver: bridge
external: false
docknet: docknet:
name: docknet name: docknet
external: true external: true
volumes: volumes:
auth-db: auth-db:
external: false external: true