feat: Dev Container (#1149)

* temporary dvctr

* start of work

* fix: timeouts in windows

* fish?

* feat: better, working stuff

* refactor: rename database-seeds to seeds/

* better

* fdsaf

* feat: don't let our container get owned by root

* fix: better user handling

* feat: falling asleep at my desk i yield to you what i have done

* feat: autoadminify

* docs: denote trickshot

* feat: open in browser on launch

* better seeds workings...

* fix: dont kill shell

* docs: mention dev/debs

* fix: whoops

* fix: make seeds load within the century

* feat: rest of the containerisation

* feat: new alias

* style: fix linter errors

* fix: bad call

* fix: better justfile
This commit is contained in:
zk
2024-08-17 15:01:40 +01:00
committed by GitHub
parent 14831a576c
commit 593adb2717
305 changed files with 6028 additions and 712 deletions
+12 -62
View File
@@ -16,71 +16,21 @@ services:
- "6379:6379"
volumes:
- tachi-redis:/data
tachi-server:
container_name: tachi-server
tachi-dev:
user: "1000:1000"
tty: true
container_name: tachi-dev
build:
dockerfile: Dockerfile.server
target: dev
depends_on:
bootstrap:
condition: service_completed_successfully
redis:
condition: service_started
mongo:
condition: service_started
links:
- redis
- mongo
volumes:
- ./:/app
dockerfile: Dockerfile.dev
ports:
- "8080:8080"
environment:
REDIS_URL: redis
MONGO_URL: mongo
PORT: 8080
NODE_ENV: "dev"
tachi-client:
container_name: tachi-client
depends_on:
bootstrap:
condition: service_completed_successfully
build:
dockerfile: Dockerfile.client
- "8080:8080" # server
- "3000:3000" # client
- "3001:3001" # docs
volumes:
- ./:/app
ports:
- "3000:3000"
tachi-seeds:
container_name: tachi-seeds
build:
dockerfile: Dockerfile.seeds
volumes:
- ./:/app
bootstrap:
container_name: tachi-bootstrap
build:
dockerfile: Dockerfile.bootstrap
volumes:
- ./:/app
links:
- redis
- mongo
environment:
REDIS_URL: redis
MONGO_URL: mongo
PORT: 8080
NODE_ENV: "dev"
tachi-docs:
container_name: tachi-docs
build:
dockerfile: Dockerfile.docs
ports:
- "3001:8000"
volumes:
- ./:/app
- ./:/tachi
# don't let pnpm's node_modules linkery bleed out of its container
- /tachi/node_modules/
- /tachi/.pnpm-store
volumes:
tachi-volume:
tachi-redis: