-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (53 loc) · 1.01 KB
/
docker-compose.yml
File metadata and controls
59 lines (53 loc) · 1.01 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
version: '3.8'
services:
app:
build: .
restart: always
depends_on:
- redis
- postgres
volumes:
- model-data:/app/models
- voice-data:/app/data/voices
env_file: .env
ports:
- "8000:8000"
worker:
build:
context: .
dockerfile: docker/Dockerfile.worker
depends_on:
- redis
- postgres
volumes:
- model-data:/app/models
- voice-data:/app/data/voices
env_file: .env
postgres:
image: postgres:15
volumes:
- postgres-data:/var/lib/postgresql/data
env_file: .env.db
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
- POSTGRES_DB=echoforge
redis:
image: redis:7
volumes:
- redis-data:/data
nginx:
image: nginx:1.25
ports:
- "80:80"
- "443:443"
volumes:
- ./docker/nginx:/etc/nginx/conf.d
- ./static:/var/www/static
depends_on:
- app
volumes:
postgres-data:
redis-data:
model-data:
voice-data: