-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.override.yml
62 lines (60 loc) · 1.79 KB
/
docker-compose.override.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
x-development-volumes: &development-volumes
volumes:
- ./docs:/workspace/app/docs/
- ./tests:/workspace/app/tests/
- ./tools:/workspace/app/tools/
- ./app:/workspace/app/app/
- ./Makefile:/workspace/app/Makefile
- ./pyproject.toml:/workspace/app/pyproject.toml
- ./uv.lock:/workspace/app/uv.lock
- ./tsconfig.json:/workspace/app/tsconfig.json
- ./package.json:/workspace/app/package.json
- ./package-lock.json:/workspace/app/package-lock.json
- ./vite.config.ts:/workspace/app/vite.config.ts
- ./resources:/workspace/app/resources
- ./public:/workspace/app/public
- ./components.json:/workspace/app/components.json
- ./tailwind.config.cjs:/workspace/app/tailwind.config.cjs
- ./postcss.config.cjs:/workspace/app/postcss.config.cjs
- ./.env.docker.example:/workspace/app/.env
services:
app:
build:
context: .
dockerfile: deploy/docker/Dockerfile.dev
ports:
- "8000:8000"
- "3006:3006"
image: app:latest-dev
tty: true
environment:
VITE_USE_SERVER_LIFESPAN: "true" # true in dev or run
SAQ_USE_SERVER_LIFESPAN: "false"
command: litestar run --reload --host 0.0.0.0 --port 8000
restart: always
<<: *development-volumes
worker:
image: app:latest-dev
command: litestar workers run
tty: true
restart: always
<<: *development-volumes
depends_on:
db:
condition: service_healthy
cache:
condition: service_healthy
env_file:
- .env.docker.example
migrator:
image: app:latest-dev
command: litestar database upgrade --no-prompt
restart: "no"
<<: *development-volumes
env_file:
- .env.docker.example
depends_on:
db:
condition: service_healthy
cache:
condition: service_healthy