Symlinks?
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2023-05-10 11:03:57 -04:00
parent 3a721987dd
commit 465e47fc10
2 changed files with 4 additions and 7 deletions

View File

@@ -168,7 +168,6 @@ steps:
commands: commands:
- docker compose -f docker-compose.staging-build.yml pull - docker compose -f docker-compose.staging-build.yml pull
- docker compose -f docker-compose.staging-build.yml build --no-cache - docker compose -f docker-compose.staging-build.yml build --no-cache
# - docker compose -f docker-compose.staging-build.yml rm --stop
- docker compose -f docker-compose.staging-build.yml up --wait - docker compose -f docker-compose.staging-build.yml up --wait
volumes: volumes:
- name: env-secrets - name: env-secrets
@@ -177,8 +176,6 @@ steps:
path: /var/run/docker.sock path: /var/run/docker.sock
- name: dockerconfig - name: dockerconfig
path: /drone/auth/.docker/config.json path: /drone/auth/.docker/config.json
- name: mongo-init
path: /drone/auth/mongo-init.js
- name: Send Status Notifications - name: Send Status Notifications
image: plugins/webhook image: plugins/webhook
privileged: true privileged: true
@@ -206,8 +203,6 @@ volumes:
- name: env-secrets - name: env-secrets
host: host:
path: /volume1/docker/beethoven/labs-auth/staging.env path: /volume1/docker/beethoven/labs-auth/staging.env
- name: mongo-init
path: /drone/grow/mongo-init.js
depends_on: depends_on:
- Test Pipeline - Test Pipeline

View File

@@ -5,11 +5,13 @@ services:
container_name: ${CONTAINER_PREFIX:-staging}-auth-service_mongo container_name: ${CONTAINER_PREFIX:-staging}-auth-service_mongo
env_file: env_file:
- staging.env - staging.env
commands:
- ln -s ./mongo-init.js /docker-entrypoint-initdb.d/mongo-init.js
networks: networks:
- docknet - docknet
volumes: volumes:
- 'auth-db:/data' - 'auth-db:/data/db'
- '/mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro' - 'auth-db:/data/configdb'
restart: unless-stopped restart: unless-stopped
image: mongo:latest image: mongo:latest
auth-service: auth-service: