-
Notifications
You must be signed in to change notification settings - Fork 8
/
local.yml
122 lines (109 loc) · 2.78 KB
/
local.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
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
113
114
115
116
117
118
119
120
121
122
version: '3.8'
volumes:
local_postgres15_data: {}
local_postgres15_data_backups: {}
local_solr_data: {}
local_solr_test_data: {}
local_minio_data: {}
services:
documentcloud_django: &django
build:
context: .
dockerfile: ./compose/local/django/Dockerfile
network: host
image: documentcloud_local_django
depends_on:
- documentcloud_postgres
- documentcloud_redis
- documentcloud_processing_redis
- documentcloud_minio
- documentcloud_solr
volumes:
- .:/app
env_file:
- ./.envs/.local/.django
- ./.envs/.local/.postgres
command: /start
networks:
default:
aliases:
- internal.api.dev.documentcloud.org
squarelet_default:
aliases:
- internal.api.dev.documentcloud.org
documentcloud_postgres:
build:
context: .
dockerfile: ./compose/production/postgres/Dockerfile
image: documentcloud_production_postgres15
volumes:
- local_postgres15_data:/var/lib/postgresql/data
- local_postgres15_data_backups:/backups
env_file:
- ./.envs/.local/.postgres
documentcloud_redis:
image: redis:5.0
documentcloud_processing_redis:
image: redis:5.0
documentcloud_minio:
image: minio/minio:RELEASE.2019-10-12T01-39-57Z
volumes:
- local_minio_data:/data
ports:
- "9000:9000"
command: server /data
env_file:
- ./.envs/.local/.django
networks:
default:
aliases:
- minio.documentcloud.org
documentcloud_solr:
image: solr:8.3
ports:
- "8983:8983"
volumes:
- local_solr_data:/var/solr
- ./config/solr:/config
- ./config/solr/lib:/opt/solr-8.3.0/lib
command:
- bash
- "-c"
- "precreate-core documentcloud /config; precreate-core notes /config; exec solr -f"
documentcloud_test_solr:
image: solr:8.3
ports:
- "8984:8983"
volumes:
- local_solr_test_data:/var/solr
- ./config/solr:/config
- ./config/solr/lib:/opt/solr-8.3.0/lib
command:
- bash
- "-c"
- "precreate-core documentcloud_test /config; precreate-core notes /config; exec solr -f"
documentcloud_celeryworker:
<<: *django
image: documentcloud_local_celeryworker
depends_on:
- documentcloud_redis
- documentcloud_processing_redis
- documentcloud_postgres
command: /start-celeryworker
networks:
- default
- squarelet_default
documentcloud_celerybeat:
<<: *django
image: documentcloud_local_celerybeat
depends_on:
- documentcloud_redis
- documentcloud_processing_redis
- documentcloud_postgres
command: /start-celerybeat
networks:
- default
- squarelet_default
networks:
squarelet_default:
external: true