forked from litestar-org/litestar-fullstack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.override.yml
51 lines (51 loc) · 1.35 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
version: "3.3"
x-development-volumes: &development-volumes
volumes:
- ./docs:/workspace/app/docs/
- ./tests:/workspace/app/tests/
- ./src:/workspace/app/src/
- ./Makefile:/workspace/app/Makefile
- ./pyproject.toml:/workspace/app/pyproject.toml
- ./pdm.lock:/workspace/app/pdm.lock
- ./mkdocs.yml:/workspace/app/mkdocs.yml
- ./tsconfig.json:/workspace/app/tsconfig.json
- ./package.json:/workspace/app/package.json
- ./vite.config.ts:/workspace/app/vite.config.ts
services:
localmail:
image: mailhog/mailhog:v1.0.0
container_name: localmail
ports:
- "8025:8025"
app:
build:
context: .
dockerfile: deploy/docker/dev/Dockerfile
image: app:latest-dev
command: litestar run --reload --host 0.0.0.0 --port 8000
restart: always
<<: *development-volumes
worker:
image: app:latest-dev
command: litestar workers run
restart: always
<<: *development-volumes
depends_on:
db:
condition: service_healthy
cache:
condition: service_healthy
env_file:
- .env.example
migrator:
image: app:latest-dev
command: litestar database upgrade --no-prompt
restart: "no"
<<: *development-volumes
env_file:
- .env.example
depends_on:
db:
condition: service_healthy
cache:
condition: service_healthy