-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
72 lines (66 loc) · 1.43 KB
/
docker-compose.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: '3.5'
services:
solr:
image: solr:6.6.5
ports:
- 8983:8983
volumes:
- solr_data:/opt/solr/server/solr:rw
networks:
- goorchirds
postgres:
image: postgres:14.3
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_HOST: postgres
POSTGRES_PORT: 5432
POSTGRES_DB: gobotany
POSTGRES_USER: postgres
POSTGRES_PASSWORD: secret
networks:
- goorchirds
redis:
image: redis:7.0.11-alpine
command: redis-server --save 60 1 --loglevel warning
volumes:
- redis_data:/data
networks:
- goorchirds
goorchids:
build: .
image: ghcr.io/jazkarta/goorchids:latest
depends_on:
- solr
- postgres
ports:
- 8000:8000
- 8001:8001
volumes:
- ./goorchids:/opt/goorchids/goorchids
- ./external:/opt/goorchids/external
environment:
GOBOTANY_DJANGO_SECRET_KEY: "secret"
REDIS_URL: redis://redis:6379
networks:
- goorchirds
worker:
build: .
image: ghcr.io/jazkarta/goorchids:latest
command: python worker.py
depends_on:
- redis
volumes:
- ./goorchids:/opt/goorchids/goorchids
- ./external:/opt/goorchids/external
environment:
GOBOTANY_DJANGO_SECRET_KEY: "secret"
REDIS_URL: redis://redis:6379
networks:
- goorchirds
volumes:
postgres_data:
solr_data:
redis_data:
networks:
goorchirds: