mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 11:44:31 +00:00
64 lines
1.2 KiB
YAML
64 lines
1.2 KiB
YAML
version: "3"
|
|
|
|
services:
|
|
db-migration:
|
|
container_name: infisical-db-migration
|
|
depends_on:
|
|
- db
|
|
image: infisical/infisical:latest-postgres
|
|
env_file: .env
|
|
command: npm run migration:latest
|
|
networks:
|
|
- infisical
|
|
|
|
backend:
|
|
container_name: infisical-backend
|
|
restart: unless-stopped
|
|
depends_on:
|
|
db:
|
|
condition: service_started
|
|
redis:
|
|
condition: service_started
|
|
db-migration:
|
|
condition: service_completed_successfully
|
|
image: infisical/infisical:latest-postgres
|
|
env_file: .env
|
|
ports:
|
|
- 80:8080
|
|
environment:
|
|
- NODE_ENV=production
|
|
networks:
|
|
- infisical
|
|
|
|
redis:
|
|
image: redis
|
|
container_name: infisical-dev-redis
|
|
env_file: .env
|
|
environment:
|
|
- ALLOW_EMPTY_PASSWORD=yes
|
|
ports:
|
|
- 6379:6379
|
|
networks:
|
|
- infisical
|
|
volumes:
|
|
- redis_data:/data
|
|
|
|
db:
|
|
container_name: infisical-db
|
|
image: postgres:14-alpine
|
|
restart: always
|
|
env_file: .env
|
|
volumes:
|
|
- pg_data:/data/db
|
|
networks:
|
|
- infisical
|
|
|
|
volumes:
|
|
pg_data:
|
|
driver: local
|
|
redis_data:
|
|
driver: local
|
|
|
|
networks:
|
|
infisical:
|