Skip to content

Commit a49a454

Browse files
committed
feat: remove minio s3
1 parent f998118 commit a49a454

File tree

3 files changed

+2
-97
lines changed

3 files changed

+2
-97
lines changed

docker-compose.prod-local.yml

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ networks:
77
volumes:
88
data:
99
redis:
10-
minio-data:
1110

1211
services:
1312
app:
@@ -104,34 +103,4 @@ services:
104103
env_file:
105104
- .env
106105
volumes:
107-
- data:/data/db
108-
109-
minio:
110-
image: quay.io/minio/minio:latest
111-
command: 'server /data --console-address ":9001"'
112-
networks:
113-
- traefik-public
114-
env_file:
115-
- .env
116-
ports:
117-
- '9000:9000'
118-
- '9001:9001'
119-
volumes:
120-
- 'minio-data:/data'
121-
healthcheck:
122-
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
123-
interval: 5s
124-
timeout: 20s
125-
retries: 10
126-
deploy:
127-
update_config:
128-
order: start-first
129-
failure_action: rollback
130-
delay: 10s
131-
rollback_config:
132-
order: stop-first
133-
restart_policy:
134-
condition: any
135-
delay: 5s
136-
max_attempts: 3
137-
window: 120s
106+
- data:/data/db

docker-compose.prod.yml

Lines changed: 1 addition & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ networks:
77
volumes:
88
data:
99
redis:
10-
minio-data:
1110

1211
services:
1312
app:
@@ -141,57 +140,4 @@ services:
141140
env_file:
142141
- .env
143142
volumes:
144-
- data:/data/db
145-
146-
minio:
147-
image: quay.io/minio/minio:latest
148-
command: 'server /data --console-address ":9001"'
149-
networks:
150-
- traefik-public
151-
env_file:
152-
- .env
153-
volumes:
154-
- 'minio-data:/data'
155-
healthcheck:
156-
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
157-
interval: 5s
158-
timeout: 20s
159-
retries: 10
160-
deploy:
161-
update_config:
162-
order: start-first
163-
failure_action: rollback
164-
delay: 10s
165-
rollback_config:
166-
order: stop-first
167-
restart_policy:
168-
condition: any
169-
delay: 5s
170-
max_attempts: 3
171-
window: 120s
172-
labels:
173-
- traefik.enable=true
174-
- traefik.docker.network=traefik-public
175-
- traefik.constraint-label=traefik-public
176-
# API Router
177-
- traefik.http.routers.minio-3-api-http.rule=Host(`s3.${APP_URL}`)
178-
- traefik.http.routers.minio-3-api-http.entrypoints=http
179-
- traefik.http.routers.minio-3-api-http.middlewares=https-redirect@swarm
180-
- traefik.http.routers.minio-3-api-https.rule=Host(`s3.${APP_URL}`)
181-
- traefik.http.routers.minio-3-api-https.entrypoints=https
182-
- traefik.http.routers.minio-3-api-https.tls=true
183-
- traefik.http.routers.minio-3-api-https.tls.certresolver=le
184-
- traefik.http.routers.minio-3-api-http.service=minio-3-api-service
185-
- traefik.http.routers.minio-3-api-https.service=minio-3-api-service
186-
- traefik.http.services.minio-3-api-service.loadbalancer.server.port=9000
187-
# Console Router
188-
- traefik.http.routers.minio-3-ui-http.rule=Host(`console.s3.${APP_URL}`)
189-
- traefik.http.routers.minio-3-ui-http.entrypoints=http
190-
- traefik.http.routers.minio-3-ui-http.middlewares=https-redirect@swarm
191-
- traefik.http.routers.minio-3-ui-https.rule=Host(`console.s3.${APP_URL}`)
192-
- traefik.http.routers.minio-3-ui-https.entrypoints=https
193-
- traefik.http.routers.minio-3-ui-https.tls=true
194-
- traefik.http.routers.minio-3-ui-https.tls.certresolver=le
195-
- traefik.http.routers.minio-3-ui-http.service=minio-3-ui-service
196-
- traefik.http.routers.minio-3-ui-https.service=minio-3-ui-service
197-
- traefik.http.services.minio-3-ui-service.loadbalancer.server.port=9001
143+
- data:/data/db

install.sh

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -293,19 +293,10 @@ echo "NSC__EMAIL__DEFAULT_SENDER__NAME=" >> $ENV_PATH
293293

294294
if [ $LOCAL_SETUP != 0 ]; then
295295
echo "NSC__EMAIL__PASSWORD_RESET_LINK=http://$HOST_IP:3001/auth/password-set?token=" >> $ENV_PATH
296-
echo "# Minio configuration" >> $ENV_PATH
297-
echo "MINIO_SERVER_URL=" >> $ENV_PATH
298-
echo "MINIO_BROWSER_REDIRECT_URL=" >> $ENV_PATH
299296
else
300297
echo "NSC__EMAIL__PASSWORD_RESET_LINK=https://$URL/auth/password-set?token=" >> $ENV_PATH
301-
echo "# Minio configuration" >> $ENV_PATH
302-
echo "MINIO_SERVER_URL=https://s3.$URL" >> $ENV_PATH
303-
echo "MINIO_BROWSER_REDIRECT_URL=https://s3.$URL" >> $ENV_PATH
304298
fi
305299

306-
echo "MINIO_ROOT_USER=root" >> $ENV_PATH
307-
echo "MINIO_ROOT_PASSWORD=$(openssl rand -base64 32)" >> $ENV_PATH
308-
309300
echo "# TRAEFIK" >> $ENV_PATH
310301
echo "EMAIL=$EMAIL" >> $ENV_PATH
311302
echo "APP_URL=$URL" >> $ENV_PATH
@@ -391,7 +382,6 @@ while true; do
391382
if [ $LOCAL_SETUP != 0 ]; then
392383
echo "\nCongratulations! Your deploy.party instance is ready to use. \n"
393384
echo "deploy.party is running on http://$HOST_IP:3001 \n"
394-
echo "Minio is running on http://$HOST_IP:9000 \n"
395385
exit 0
396386
else
397387
echo "\n--------------------------------------------------------------------------------"

0 commit comments

Comments
 (0)