mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
rename docker compose and bring back make up-dev
This commit is contained in:
10
Makefile
10
Makefile
@@ -5,16 +5,10 @@ push:
|
|||||||
docker-compose -f docker-compose.yml push
|
docker-compose -f docker-compose.yml push
|
||||||
|
|
||||||
up-dev:
|
up-dev:
|
||||||
docker-compose -f docker-compose.dev.yml up --build
|
docker compose -f docker-compose.dev.yml up --build
|
||||||
|
|
||||||
up-pg-dev:
|
|
||||||
docker compose -f docker-compose.pg.yml up --build
|
|
||||||
|
|
||||||
i-dev:
|
|
||||||
infisical run -- docker-compose -f docker-compose.dev.yml up --build
|
|
||||||
|
|
||||||
up-prod:
|
up-prod:
|
||||||
docker-compose -f docker-compose.yml up --build
|
docker-compose -f docker-compose.prod.yml up --build
|
||||||
|
|
||||||
down:
|
down:
|
||||||
docker-compose down
|
docker-compose down
|
||||||
|
|||||||
@@ -55,14 +55,30 @@ services:
|
|||||||
POSTGRES_USER: infisical
|
POSTGRES_USER: infisical
|
||||||
POSTGRES_DB: infisical-test
|
POSTGRES_DB: infisical-test
|
||||||
|
|
||||||
|
db-migration:
|
||||||
|
container_name: infisical-db-migration
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
build:
|
||||||
|
context: ./backend
|
||||||
|
dockerfile: Dockerfile.dev
|
||||||
|
env_file: .env
|
||||||
|
environment:
|
||||||
|
- DB_CONNECTION_URI=postgres://infisical:infisical@db/infisical?sslmode=disable
|
||||||
|
command: npm run migration:latest
|
||||||
|
|
||||||
backend:
|
backend:
|
||||||
container_name: infisical-dev-api
|
container_name: infisical-dev-api
|
||||||
build:
|
build:
|
||||||
context: ./backend
|
context: ./backend
|
||||||
dockerfile: Dockerfile.dev
|
dockerfile: Dockerfile.dev
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
db:
|
||||||
- redis
|
condition: service_started
|
||||||
|
redis:
|
||||||
|
condition: service_started
|
||||||
|
db-migration:
|
||||||
|
condition: service_completed_successfully
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
@@ -1,133 +0,0 @@
|
|||||||
version: "3.9"
|
|
||||||
|
|
||||||
services:
|
|
||||||
nginx:
|
|
||||||
container_name: infisical-dev-nginx
|
|
||||||
image: nginx
|
|
||||||
restart: always
|
|
||||||
ports:
|
|
||||||
- 8080:80
|
|
||||||
volumes:
|
|
||||||
- ./nginx/default.dev.conf:/etc/nginx/conf.d/default.conf:ro
|
|
||||||
depends_on:
|
|
||||||
- backend
|
|
||||||
- frontend
|
|
||||||
|
|
||||||
db:
|
|
||||||
image: postgres:14-alpine
|
|
||||||
ports:
|
|
||||||
- "5432:5432"
|
|
||||||
volumes:
|
|
||||||
- postgres-data:/var/lib/postgresql/data
|
|
||||||
environment:
|
|
||||||
POSTGRES_PASSWORD: infisical
|
|
||||||
POSTGRES_USER: infisical
|
|
||||||
POSTGRES_DB: infisical
|
|
||||||
|
|
||||||
redis:
|
|
||||||
image: redis
|
|
||||||
container_name: infisical-dev-redis
|
|
||||||
environment:
|
|
||||||
- ALLOW_EMPTY_PASSWORD=yes
|
|
||||||
ports:
|
|
||||||
- 6379:6379
|
|
||||||
volumes:
|
|
||||||
- redis_data:/data
|
|
||||||
|
|
||||||
redis-commander:
|
|
||||||
container_name: infisical-dev-redis-commander
|
|
||||||
image: rediscommander/redis-commander
|
|
||||||
restart: always
|
|
||||||
depends_on:
|
|
||||||
- redis
|
|
||||||
environment:
|
|
||||||
- REDIS_HOSTS=local:redis:6379
|
|
||||||
ports:
|
|
||||||
- "8085:8081"
|
|
||||||
|
|
||||||
db-test:
|
|
||||||
profiles: ["test"]
|
|
||||||
image: postgres:14-alpine
|
|
||||||
ports:
|
|
||||||
- "5430:5432"
|
|
||||||
environment:
|
|
||||||
POSTGRES_PASSWORD: infisical
|
|
||||||
POSTGRES_USER: infisical
|
|
||||||
POSTGRES_DB: infisical-test
|
|
||||||
|
|
||||||
db-migration:
|
|
||||||
container_name: infisical-db-migration
|
|
||||||
depends_on:
|
|
||||||
- db
|
|
||||||
build:
|
|
||||||
context: ./backend
|
|
||||||
dockerfile: Dockerfile.dev
|
|
||||||
env_file: .env
|
|
||||||
environment:
|
|
||||||
- DB_CONNECTION_URI=postgres://infisical:infisical@db/infisical?sslmode=disable
|
|
||||||
command: npm run migration:latest
|
|
||||||
|
|
||||||
backend:
|
|
||||||
container_name: infisical-dev-api
|
|
||||||
build:
|
|
||||||
context: ./backend
|
|
||||||
dockerfile: Dockerfile.dev
|
|
||||||
depends_on:
|
|
||||||
db:
|
|
||||||
condition: service_started
|
|
||||||
redis:
|
|
||||||
condition: service_started
|
|
||||||
db-migration:
|
|
||||||
condition: service_completed_successfully
|
|
||||||
env_file:
|
|
||||||
- .env
|
|
||||||
ports:
|
|
||||||
- 4000:4000
|
|
||||||
environment:
|
|
||||||
- NODE_ENV=development
|
|
||||||
- DB_CONNECTION_URI=postgres://infisical:infisical@db/infisical?sslmode=disable
|
|
||||||
volumes:
|
|
||||||
- ./backend/src:/app/src
|
|
||||||
|
|
||||||
frontend:
|
|
||||||
container_name: infisical-dev-frontend
|
|
||||||
restart: unless-stopped
|
|
||||||
depends_on:
|
|
||||||
- backend
|
|
||||||
build:
|
|
||||||
context: ./frontend
|
|
||||||
dockerfile: Dockerfile.dev
|
|
||||||
volumes:
|
|
||||||
- ./frontend/src:/app/src/ # mounted whole src to avoid missing reload on new files
|
|
||||||
- ./frontend/public:/app/public
|
|
||||||
env_file: .env
|
|
||||||
environment:
|
|
||||||
- NEXT_PUBLIC_ENV=development
|
|
||||||
- INFISICAL_TELEMETRY_ENABLED=false
|
|
||||||
|
|
||||||
pgadmin:
|
|
||||||
image: dpage/pgadmin4
|
|
||||||
restart: always
|
|
||||||
environment:
|
|
||||||
PGADMIN_DEFAULT_EMAIL: admin@example.com
|
|
||||||
PGADMIN_DEFAULT_PASSWORD: pass
|
|
||||||
ports:
|
|
||||||
- 5050:80
|
|
||||||
depends_on:
|
|
||||||
- db
|
|
||||||
|
|
||||||
smtp-server:
|
|
||||||
container_name: infisical-dev-smtp-server
|
|
||||||
image: lytrax/mailhog:latest # https://github.com/mailhog/MailHog/issues/353#issuecomment-821137362
|
|
||||||
restart: always
|
|
||||||
logging:
|
|
||||||
driver: "none" # disable saving logs
|
|
||||||
ports:
|
|
||||||
- 1025:1025 # SMTP server
|
|
||||||
- 8025:8025 # Web UI
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
postgres-data:
|
|
||||||
driver: local
|
|
||||||
redis_data:
|
|
||||||
driver: local
|
|
||||||
Reference in New Issue
Block a user