-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Description
Bonjour
Au lancement, sites-faciles plante avec cette erreur:
raise EndpointConnectionError(endpoint_url=request.url, error=e) botocore.exceptions.EndpointConnectionError: Could not connect to the endpoint URL: "http://localhost:9000/sites-faciles-media-storage/original_images/Pictogrammes_DSFR__Buildings__City_Hall" error: Recipe deploy failed on line 32 with exit code 1
Je l'ai lancé avec le docker-compose ci-dessous:
services:
db:
image: postgres:16
env_file:
- devops/env.d/development
environment:
DATABASE_PORT: 5445
POSTGRES_USER: xxx-user
POSTGRES_PASSWORD: xxx-pwd
POSTGRES_DB: xxx-dbname
PGPORT: 5445
healthcheck:
test: ['CMD-SHELL', 'pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}']
interval: 1s
timeout: 2s
retries: 300
ports:
- '5445:5445'
volumes:
- postgres_data:/var/lib/postgresql/data
minio:
image: minio/minio
env_file:
- devops/env.d/development
environment:
S3_KEY_ID: xxx-minio-user
S3_KEY_SECRET: xxx-pwd
MINIO_ROOT_USER: xxx-minio-user
MINIO_ROOT_PASSWORD: xxx-pwd
ports:
- '9000:9000'
- '9001:9001'
healthcheck:
test: ['CMD', 'mc', 'ready', 'local']
interval: 1s
timeout: 20s
retries: 300
entrypoint: ''
command: minio server --console-address :9001 /data
volumes:
- medias:/data
createbuckets:
image: minio/mc
env_file:
- devops/env.d/development # S3_BUCKET_NAME=sites-faciles-media-storage
depends_on:
minio:
condition: service_healthy
restart: true
entrypoint: >
sh -c "
/usr/bin/mc alias set sites-faciles http://minio:9000 xxx-minio-user xxx-pwd && \
/usr/bin/mc mb sites-faciles/sites-faciles-media-storage && \
/usr/bin/mc version enable sites-faciles/sites-faciles-media-storage && \
exit 0;"
web:
image: ghcr.io/numerique-gouv/sites-faciles:main
env_file:
- devops/env.d/development
environment:
HOST_PORT: 8000
CONTAINER_PORT: 8000
DATABASE_URL: postgres://xxx-user:xxx-pwd@db:5445/xxx-dbname
ports:
- '8000:8000'
depends_on:
db:
condition: service_healthy
restart: true
createbuckets:
condition: service_started
nginx:
image: nginx:1.25
ports:
- '8083:8083'
volumes:
- ./devops/docker/files/etc/nginx/conf.d:/etc/nginx/conf.d:ro
depends_on:
web:
condition: service_started
volumes:
postgres_data:
medias:
et le fichier devops/env.d/development
SECRET_KEY=sample-secret-key
DEBUG=False
HOST_PROTO=http
# HOST_URL and ALLOWED_HOSTS: use 0.0.0.0 for Docker
HOST_URL=0.0.0.0
ALLOWED_HOSTS=0.0.0.0,127.0.0.1
HOST_PORT=8000
CONTAINER_PORT=$HOST_PORT
SITE_NAME="Sites Faciles"
MEDIA_ROOT=medias
# USE_DOCKER: Set 1 to use Docker
USE_DOCKER=1
DOCKER_USER=1000
DATABASE_NAME=djdb
DATABASE_USER=dju
DATABASE_PASSWORD=djpwd
DATABASE_HOST=localhost
DATABASE_PORT=5445
DATABASE_URL=postgres://${DATABASE_USER}:${DATABASE_PASSWORD}@${DATABASE_HOST}:${DATABASE_PORT}/${DATABASE_NAME}
POSTGRES_USER=dju
POSTGRES_PASSWORD=djpwd
POSTGRES_DB=djdb
PGPORT=5445
# S3_HOST: domain only, with no protocol or trailing slash.
S3_PROTOCOL=http
S3_HOST=localhost:9000
S3_KEY_ID=minio
S3_KEY_SECRET=miniopwd
S3_BUCKET_NAME=sites-faciles-media-storage
S3_BUCKET_REGION=
# S3_LOCATION: If the S3 bucket is shared, add a unique folder name
S3_LOCATION=
# (optional) Email settings
DEFAULT_FROM_EMAIL=
EMAIL_HOST=
EMAIL_PORT=
EMAIL_HOST_USER=
EMAIL_HOST_PASSWORD=
EMAIL_USE_TLS=
EMAIL_USE_SSL=
EMAIL_TIMEOUT=30
EMAIL_SSL_KEYFILE=
EMAIL_SSL_CERTFILE=
WAGTAIL_PASSWORD_RESET_ENABLED=False
# WAGTAIL_PASSWORD_RESET_ENABLED: set to true to be able to send the email
# from the DEFAULT_FROM_EMAIL through the defined SMTP parameters
Metadata
Metadata
Assignees
Labels
No labels