-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose-demo.yaml
58 lines (54 loc) · 1.52 KB
/
compose-demo.yaml
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
services:
redis:
image: docker.io/redis:7-alpine
restart: always
container_name: verbacap-redis
psql:
image: docker.io/postgres:15-alpine
restart: always
container_name: verbacap-psql
environment:
POSTGRES_PASSWORD: "changeme"
volumes:
- ./example/psql:/var/lib/postgresql/data
init-container:
image: alpine:3.19
command: chown -R 1000:1000 /persist /home/app/staticfiles
volumes:
- ./example/web:/persist
- ./example/web-static:/home/app/staticfiles
web:
image: ghcr.io/mirio/verbacap:v1.5.0
restart: always
container_name: verbacap-web
command: "run"
ports:
- 8080:8080
depends_on:
- redis
- psql
- init-container
environment:
DATABASE_URL: "postgres://postgres:changeme@verbacap-psql:5432/postgres"
DJANGO_SECRET_KEY: "Chang4M4"
DJANGO_DEBUG: "False"
CELERY_BROKER_URL: "redis://verbacap-redis:6379/0"
PERSIST_AUDIO_ROOTDIR: "/persist"
volumes:
- ./example/web:/persist
- ./example/web-static:/home/app/staticfiles
celery:
image: ghcr.io/mirio/verbacap:v1.5.0
restart: always
container_name: verbacap-celery
command: "celery"
depends_on:
- web
environment:
DATABASE_URL: "postgres://postgres:changeme@verbacap-psql:5432/postgres"
DJANGO_SECRET_KEY: "Chang4M4"
DJANGO_DEBUG: "False"
CELERY_BROKER_URL: "redis://verbacap-redis:6379/0"
PERSIST_AUDIO_ROOTDIR: "/persist"
volumes:
- ./example/web:/persist