first commit
This commit is contained in:
@@ -0,0 +1,106 @@
|
||||
services:
|
||||
floci-ui:
|
||||
build:
|
||||
context: ./packages/frontend
|
||||
dockerfile: Dockerfile.dev
|
||||
volumes:
|
||||
- ./packages/frontend/src:/app/src
|
||||
- ./packages/frontend/index.html:/app/index.html
|
||||
- ./packages/frontend/vite.config.ts:/app/vite.config.ts
|
||||
- ./packages/frontend/tsconfig.json:/app/tsconfig.json
|
||||
- ./packages/frontend/tsconfig.node.json:/app/tsconfig.node.json
|
||||
ports:
|
||||
- "4500:4500"
|
||||
environment:
|
||||
API_TARGET: http://floci-api:4501
|
||||
VITE_USE_POLLING: "true"
|
||||
depends_on:
|
||||
- floci-api
|
||||
networks:
|
||||
- floci_default
|
||||
|
||||
floci-api:
|
||||
build:
|
||||
context: ./packages/api
|
||||
dockerfile: Dockerfile.dev
|
||||
volumes:
|
||||
- ./packages/api/src:/app/src
|
||||
ports:
|
||||
- "4501:4501"
|
||||
environment:
|
||||
FLOCI_ENDPOINT: http://floci:4566
|
||||
FLOCI_AZURE_ENDPOINT: http://floci-az:4577
|
||||
AWS_REGION: us-east-1
|
||||
AWS_ACCESS_KEY_ID: test
|
||||
AWS_SECRET_ACCESS_KEY: test
|
||||
FLOCI_GCP_ENDPOINT: http://floci-gcp:4588
|
||||
FLOCI_GCP_PROJECT: floci-local
|
||||
PORT: "4501"
|
||||
depends_on:
|
||||
- floci
|
||||
networks:
|
||||
- floci_default
|
||||
|
||||
floci:
|
||||
image: floci/floci:latest-compat
|
||||
ports:
|
||||
- "4566:4566"
|
||||
volumes:
|
||||
# Floci runs Lambda functions in throwaway containers, so it needs the host
|
||||
# Docker daemon. Without this, invoke fails with "Failed to start Lambda
|
||||
# container". This grants the emulator control of host Docker — acceptable
|
||||
# for a local dev stack, and the same mount the README's docker run uses.
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- ./data:/app/data
|
||||
- ./init/ready.d:/etc/floci/init/ready.d:ro
|
||||
- ./init/files:/etc/floci/init/files:ro
|
||||
environment:
|
||||
FLOCI_STORAGE_MODE: persistent
|
||||
networks:
|
||||
floci_default:
|
||||
aliases:
|
||||
- localhost.floci.io
|
||||
|
||||
# Multi-cloud emulators — enabled with the "multicloud" profile:
|
||||
# docker compose --profile multicloud up
|
||||
floci-az:
|
||||
image: floci/floci-az
|
||||
profiles: ["multicloud"]
|
||||
ports:
|
||||
- "4577:4577"
|
||||
networks:
|
||||
- floci_default
|
||||
|
||||
floci-gcp:
|
||||
image: floci/floci-gcp
|
||||
profiles: ["multicloud"]
|
||||
ports:
|
||||
- "4588:4588"
|
||||
volumes:
|
||||
# Cloud SQL instances are real Postgres containers; see the note on `floci`.
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
networks:
|
||||
- floci_default
|
||||
|
||||
floci-seed:
|
||||
build:
|
||||
context: ./init
|
||||
dockerfile: Dockerfile.seed
|
||||
profiles: ["multicloud"]
|
||||
command: ["/bin/sh", "/etc/floci/init/seed-clouds.sh"]
|
||||
volumes:
|
||||
- ./init:/etc/floci/init:ro
|
||||
environment:
|
||||
FLOCI_AZURE_ENDPOINT: http://floci-az:4577
|
||||
FLOCI_AZURE_ACCOUNT_NAME: devstoreaccount1
|
||||
FLOCI_GCP_ENDPOINT: http://floci-gcp:4588
|
||||
FLOCI_GCP_PROJECT: floci-local
|
||||
depends_on:
|
||||
- floci-az
|
||||
- floci-gcp
|
||||
networks:
|
||||
- floci_default
|
||||
|
||||
networks:
|
||||
floci_default:
|
||||
name: floci_default
|
||||
Reference in New Issue
Block a user