This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user