Created
April 30, 2024 18:15
-
-
Save ontologiae/94bc530fa29e02d385acb883a3e799c1 to your computer and use it in GitHub Desktop.
docker compose chaine chargement sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.8' | |
services: | |
csv2sql: | |
image: csv2sql:latest # Remplacez par le nom/tag de votre image Docker | |
build: ./csv2sql | |
volumes: | |
- data:/home/opam/csvsql | |
entrypoint: /bin/sh -c "while true; do sleep 30; done" # Garder le conteneur en vie pour l'exécution des commandes | |
postgres: | |
image: postgres:latest | |
volumes: | |
- data:/docker-entrypoint-initdb.d/ # Script pour charger le fichier SQL dans PostgreSQL | |
environment: | |
POSTGRES_DB: arboretum | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
volumes: | |
data: |
da-max
commented
Apr 30, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment