-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.local.yml
More file actions
112 lines (105 loc) · 2.48 KB
/
Copy pathdocker-compose.local.yml
File metadata and controls
112 lines (105 loc) · 2.48 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
services:
db:
image: postgres:18-alpine
restart: always
env_file: ".env.local"
volumes:
- postgres-data-local:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB" ]
interval: 10s
timeout: 5s
retries: 5
environment:
- POSTGRES_INITDB_ARGS=--locale=C --encoding=UTF8
redis:
image: redis:alpine
restart: always
ports:
- "6379:6379"
volumes:
- redis-data-local:/data
dramatiq_worker:
container_name: dramatiq_worker
build:
context: .
dockerfile: backend/Dockerfile
restart: always
env_file: ".env.local"
environment:
- POSTGRES_SERVER=db
- REDIS_HOST=redis
- FALLOUT_WORKER=1
depends_on:
db:
condition: service_healthy
redis:
condition: service_started
working_dir: /app
command: [ "sh", "-c", "uv run periodiq app.core.dramatiq app.api.tasks & uv run dramatiq --processes 1 app.api.tasks" ]
volumes:
- ./backend/app:/app/app
rustfs:
image: rustfs/rustfs:latest
container_name: rustfs
env_file:
- .env.local
ports:
- "9000:9000"
- "9001:9001"
volumes:
- rustfs_data_local:/data
mailpit:
image: axllent/mailpit:latest
container_name: mailpit
restart: always
ports:
- "1025:1025"
- "8025:8025"
environment:
MP_MAX_MESSAGES: 5000
MP_SMTP_AUTH_ACCEPT_ANY: 1
MP_SMTP_AUTH_ALLOW_INSECURE: 1
fastapi:
container_name: fastapi
build:
context: .
dockerfile: backend/Dockerfile
restart: always
environment:
- POSTGRES_SERVER=db
- REDIS_HOST=redis
- RUSTFS_HOSTNAME=rustfs
- RUSTFS_PORT=9000
env_file: ".env.local"
depends_on:
db:
condition: service_healthy
rustfs:
condition: service_started
ports:
- "8000:8000"
working_dir: /app
command: [ "sh", "-c", "uv run alembic upgrade head && uv run uvicorn main:app --host 0.0.0.0 --port 8000 --reload" ]
volumes:
- ./backend/app:/app/app
- ./backend/alembic:/app/alembic
vuejs:
container_name: vuejs
build:
context: ./frontend
dockerfile: Dockerfile
restart: always
ports:
- "3000:3000"
volumes:
- ./frontend:/app
- /app/node_modules
environment:
- NODE_ENV=development
volumes:
postgres-data-local:
redis-data-local:
rustfs_data_local: