-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-all.yaml
More file actions
99 lines (92 loc) · 2.33 KB
/
docker-compose-all.yaml
File metadata and controls
99 lines (92 loc) · 2.33 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
volumes:
cincoctrl_local_postgres_data: {}
cincoctrl_local_postgres_data_backups: {}
cincoctrl_local_s3_data: {}
services:
django:
build:
context: ./cincoctrl
dockerfile: ./compose/local/django/Dockerfile
image: cincoctrl_local_django
depends_on:
- postgres
- minio
volumes:
- ./cincoctrl:/app:z
env_file:
- ./cincoctrl/.envs/.local/.django
- ./cincoctrl/.envs/.local/.postgres
environment:
CINCO_MINIO_ENDPOINT: http://minio.cinco.orb.local:9000
ports:
- '8000:8000'
command: /start
postgres:
build:
context: ./cincoctrl
dockerfile: ./compose/production/postgres/Dockerfile
image: cincoctrl_production_postgres
volumes:
- cincoctrl_local_postgres_data:/var/lib/postgresql/data
- cincoctrl_local_postgres_data_backups:/backups
env_file:
- ./cincoctrl/.envs/.local/.postgres
arclight:
build:
context: ./arclight
dockerfile: ./Dockerfile.app.dev
image: cinco/arclight
depends_on:
- solr
volumes:
- ./arclight:/app
environment:
RAILS_VERSION: 7.2.2
SOLR_PORT: 8983
SOLR_URL: http://solr:8983/solr/arclight
SOLR_VERSION: 9.6.1
CINCO_MINIO_ENDPOINT: http://minio.cinco.orb.local:9000
ports:
- "3000:3000"
tty: true
stdin_open: true
solr:
build:
context: ./arclight
dockerfile: ./Dockerfile.solr
image: cinco/solr
ports:
- "8983:8983"
healthcheck:
test: ["CMD", "curl", "http://localhost:8983/solr/arclight/admin/ping"]
timeout: 20s
retries: 10
minio:
image: minio/minio
container_name: cincoctrl_local_s3
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
command: server /data --console-address ":9001"
volumes:
- ./.mock_s3:/data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
minio-setup:
image: minio/mc
depends_on:
minio:
condition: service_healthy
entrypoint: >
/bin/sh -c "
sleep 10;
mc alias set local http://minio:9000 minioadmin minioadmin;
mc mb local/cinco-dev;
mc anonymous set public local/cinco-dev;
"