-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.override.yml
58 lines (56 loc) · 1.42 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
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
- ./resources:/workspace/app/resources
- ./public:/workspace/app/public
- ./.env.docker.example:/workspace/app/.env
services:
localmail:
image: mailhog/mailhog:v1.0.0
container_name: localmail
ports:
- "8025:8025"
app:
build:
context: .
dockerfile: deploy/docker/dev/Dockerfile
ports:
- "8000:8000"
- "3006:3006"
image: app:latest-dev
tty: true
environment:
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