-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
157 lines (149 loc) · 7.54 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
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
version: "3.7"
# ======================================================================================================================
# Default network.
networks:
royllo-explorer-network:
name: royllo-explorer-network
# ======================================================================================================================
# Volumes - Volumes are the preferred mechanism for persisting data generated by and used by Docker containers.
# You can list them with the command: 'docker volume ls'
volumes:
royllo-explorer-database-volume:
royllo-explorer-storage-volume:
# ======================================================================================================================
# Services (Docker images).
services:
# ====================================================================================================================
# Database used to store data ( https://hub.docker.com/_/postgres ).
royllo-explorer-database-server:
image: library/postgres:15-alpine
networks:
- royllo-explorer-network
ports:
- "5432:5432"
volumes:
- royllo-explorer-database-volume:/var/lib/postgresql/data
environment:
- POSTGRES_DB=royllo_explorer_database
- POSTGRES_USER=royllo_explorer_username
- POSTGRES_PASSWORD=Q5QnE5S%Y]qt7
# ====================================================================================================================
# Storage service used to store content ( https://hub.docker.com/r/minio/minio ).
royllo-explorer-storage-server:
image: minio/minio:RELEASE.2024-01-01T16-36-33Z.fips
networks:
- royllo-explorer-network
ports:
- "9000:9000"
- "9001:9001"
volumes:
- royllo-explorer-storage-volume:/data
environment:
- TZ=Europe/Paris
- MINIO_ROOT_USER=royllo
- MINIO_ROOT_PASSWORD=tTX4LD7gYaQbhZ
command: server --console-address ":9001" /data
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:9000/minio/health/live" ]
interval: 30s
timeout: 20s
retries: 3
createRoylloBucket:
image: minio/mc:RELEASE.2023-12-29T20-15-29Z.fips
networks:
- royllo-explorer-network
depends_on:
- royllo-explorer-storage-server
entrypoint: >
/bin/sh -c "
sleep 10;
/usr/bin/mc alias set myminio http://royllo-explorer-storage-server:9000 royllo tTX4LD7gYaQbhZ;
/usr/bin/mc mb myminio/royllo-explorer;
/usr/bin/mc anonymous set public myminio/royllo-explorer;
exit 0;
"
# ====================================================================================================================
# Royllo explorer batch server ( https://hub.docker.com/r/royllo/explorer-batch ).
royllo-explorer-batch-server:
image: royllo/explorer-batch:latest
depends_on:
- royllo-explorer-database-server
networks:
- royllo-explorer-network
environment:
# Database configuration.
- ROYLLO_EXPLORER_CONTENT_BASE_URL=http://localhost:9000/royllo-explorer
- SPRING_DATASOURCE_DRIVER_CLASS_NAME=org.postgresql.Driver
- SPRING_DATASOURCE_URL=jdbc:postgresql://royllo-explorer-database-server/royllo_explorer_database
- SPRING_DATASOURCE_USERNAME=royllo_explorer_username
- SPRING_DATASOURCE_PASSWORD=Q5QnE5S%Y]qt7
- SPRING_LIQUIBASE_ENABLED=true
# Storage configuration.
- SPRING_PROFILES_ACTIVE=s3-storage
- S3_ACCESS_KEY=royllo
- S3_SECRET_KEY=tTX4LD7gYaQbhZ
- S3_BUCKET_NAME=royllo-explorer
- S3_ENDPOINTURL=http://royllo-explorer-storage-server:9000
# Mempool configuration.
- MEMPOOL_API_BASE-URL=https://mempool.space/testnet/api
# Taproot configuration.
- TAPD_API_BASE-URL=https://testnet.universe.royllo.org:8089
- TAPD_API_MACAROON=0201047461706402A301030A1004650A26E6928A4C60E007BDA107389E1201301A180A09616464726573736573120472656164120577726974651A150A06617373657473120472656164120577726974651A150A066461656D6F6E120472656164120577726974651A130A046D696E74120472656164120577726974651A150A0670726F6F6673120472656164120577726974651A170A08756E6976657273651204726561641205777269746500000620A28CB923A36B8B86E03C47E5275CA31104A6065401227FFD068BC545DFAB383F
# ====================================================================================================================
# Royllo explorer API server ( https://hub.docker.com/r/royllo/explorer-api ).
royllo-explorer-api-server:
image: royllo/explorer-api:latest
depends_on:
- royllo-explorer-batch-server
networks:
- royllo-explorer-network
ports:
- "9090:8080"
environment:
# Database configuration.
- ROYLLO_EXPLORER_CONTENT_BASE_URL=http://localhost:9000/royllo-explorer
- SPRING_DATASOURCE_DRIVER_CLASS_NAME=org.postgresql.Driver
- SPRING_DATASOURCE_URL=jdbc:postgresql://royllo-explorer-database-server/royllo_explorer_database
- SPRING_DATASOURCE_USERNAME=royllo_explorer_username
- SPRING_DATASOURCE_PASSWORD=Q5QnE5S%Y]qt7
- SPRING_LIQUIBASE_ENABLED=false
# Storage configuration.
- SPRING_PROFILES_ACTIVE=s3-storage
- S3_ACCESS_KEY=royllo
- S3_SECRET_KEY=tTX4LD7gYaQbhZ
- S3_BUCKET_NAME=royllo-explorer
- S3_ENDPOINTURL=http://royllo-explorer-storage-server:9000
# Mempool configuration.
- MEMPOOL_API_BASE-URL=https://mempool.space/testnet/api
# Taproot configuration.
- TAPD_API_BASE-URL=https://testnet.universe.royllo.org:8089
- TAPD_API_MACAROON=0201047461706402A301030A1004650A26E6928A4C60E007BDA107389E1201301A180A09616464726573736573120472656164120577726974651A150A06617373657473120472656164120577726974651A150A066461656D6F6E120472656164120577726974651A130A046D696E74120472656164120577726974651A150A0670726F6F6673120472656164120577726974651A170A08756E6976657273651204726561641205777269746500000620A28CB923A36B8B86E03C47E5275CA31104A6065401227FFD068BC545DFAB383F
# ====================================================================================================================
# Royllo explorer web server ( https://hub.docker.com/r/royllo/explorer-web ).
royllo-explorer-web-server:
image: royllo/explorer-web:latest
depends_on:
- royllo-explorer-batch-server
networks:
- royllo-explorer-network
ports:
- "8080:8080"
environment:
# Database configuration.
- ROYLLO_EXPLORER_CONTENT_BASE_URL=http://localhost:9000/royllo-explorer
- SPRING_DATASOURCE_DRIVER_CLASS_NAME=org.postgresql.Driver
- SPRING_DATASOURCE_URL=jdbc:postgresql://royllo-explorer-database-server/royllo_explorer_database
- SPRING_DATASOURCE_USERNAME=royllo_explorer_username
- SPRING_DATASOURCE_PASSWORD=Q5QnE5S%Y]qt7
- SPRING_LIQUIBASE_ENABLED=false
# Storage configuration.
- SPRING_PROFILES_ACTIVE=s3-storage
- S3_ACCESS_KEY=royllo
- S3_SECRET_KEY=tTX4LD7gYaQbhZ
- S3_BUCKET_NAME=royllo-explorer
- S3_ENDPOINTURL=http://royllo-explorer-storage-server:9000
# Mempool configuration.
- MEMPOOL_API_BASE-URL=https://mempool.space/testnet/api
# Taproot configuration.
- TAPD_API_BASE-URL=https://testnet.universe.royllo.org:8089
- TAPD_API_MACAROON=0201047461706402A301030A1004650A26E6928A4C60E007BDA107389E1201301A180A09616464726573736573120472656164120577726974651A150A06617373657473120472656164120577726974651A150A066461656D6F6E120472656164120577726974651A130A046D696E74120472656164120577726974651A150A0670726F6F6673120472656164120577726974651A170A08756E6976657273651204726561641205777269746500000620A28CB923A36B8B86E03C47E5275CA31104A6065401227FFD068BC545DFAB383F