Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
69 lines (63 loc) · 2.01 KB
/
Copy pathdocker-compose.yml
File metadata and controls
69 lines (63 loc) · 2.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
60
61
62
63
64
65
66
67
68
69
version: '3'
services:
postgres:
image: 'postgres:latest'
ports:
- 9920:5432
environment:
- POSTGRES_DB=mrd
- POSTGRES_USER=mrd
- POSTGRES_PASSWORD=mrd
healthcheck:
test: ["CMD-SHELL", "pg_isready -U mrd"]
interval: 5s
timeout: 5s
retries: 5
azurite:
image: 'mcr.microsoft.com/azure-storage/azurite:latest'
ports:
- 10000:10000
mrd-sqlite-azurite:
profiles: ["remote"]
build: .
ports:
- 3334:3333
environment:
- MRD_STORAGE_SERVER_DATABASE_PROVIDER=sqlite
- MRD_STORAGE_SERVER_DATABASE_CONNECTION_STRING=/data/metadata.db
- MRD_STORAGE_SERVER_STORAGE_PROVIDER=azureblob
- MRD_STORAGE_SERVER_STORAGE_CONNECTION_STRING=DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://azurite:10000/devstoreaccount1
volumes:
- /data
depends_on:
azurite:
condition: service_started
mrd-postgres-filesystem:
profiles: ["remote"]
build: .
ports:
- 3335:3333
environment:
- MRD_STORAGE_SERVER_DATABASE_PROVIDER=postgresql
- MRD_STORAGE_SERVER_DATABASE_CONNECTION_STRING=user=mrd dbname=mrd host=postgres port=5432 sslmode=disable
- MRD_STORAGE_SERVER_DATABASE_PASSWORD=mrd
- MRD_STORAGE_SERVER_STORAGE_PROVIDER=filesystem
- MRD_STORAGE_SERVER_STORAGE_CONNECTION_STRING=/data/blobs
volumes:
- /data
depends_on:
postgres:
condition: service_healthy
# A bit of a hack: this service service serves no purpose other forcing
# "docker compose up -d" to return only when the Postres is fully ready
# as defined by its health check, since this container will only start
# when the DB is healthy.
alpine:
profiles: ["inproc"]
image: 'alpine:latest'
depends_on:
postgres:
condition: service_healthy
azurite:
condition: service_started
command: ["sleep", "infinity"]