Secrets VM: v2 (#50)
Some checks failed
Infrastructure / Check and run Ansbile playbooks (push) Failing after 4m34s
Some checks failed
Infrastructure / Check and run Ansbile playbooks (push) Failing after 4m34s
Closes #44. We'll do a manual migration for stability and simplicity. Reviewed-on: #50
This commit is contained in:
@@ -1,11 +1,28 @@
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
db-migration:
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
image: infisical/infisical:latest-postgres
|
||||
env_file: .env
|
||||
command: npm run migration:latest
|
||||
pull_policy: always
|
||||
networks:
|
||||
- infisical
|
||||
|
||||
backend:
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
- mongo
|
||||
image: infisical/infisical:latest
|
||||
db:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_started
|
||||
db-migration:
|
||||
condition: service_completed_successfully
|
||||
image: infisical/infisical:latest-postgres
|
||||
pull_policy: always
|
||||
env_file: .env
|
||||
ports:
|
||||
- 80:8080
|
||||
@@ -20,14 +37,18 @@ services:
|
||||
ports:
|
||||
- 6379:6379
|
||||
volumes:
|
||||
- /mnt/nvme/redis-data:/data
|
||||
- /mnt/nvme/redis_data:/data
|
||||
|
||||
mongo:
|
||||
image: mongo
|
||||
db:
|
||||
image: postgres:14-alpine
|
||||
restart: always
|
||||
env_file: .env
|
||||
environment:
|
||||
- MONGO_INITDB_ROOT_USERNAME=${MONGO_USERNAME}
|
||||
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_PASSWORD}
|
||||
volumes:
|
||||
- /mnt/nvme/mongo-data:/data/db
|
||||
- /mnt/nvme/pg_data:/var/lib/postgresql/data
|
||||
networks:
|
||||
- infisical
|
||||
healthcheck:
|
||||
test: "pg_isready --username=${POSTGRES_USER} && psql --username=${POSTGRES_USER} --list"
|
||||
interval: 5s
|
||||
timeout: 10s
|
||||
retries: 10
|
||||
|
Reference in New Issue
Block a user