Kaynağa Gözat

Ajout de docker pour postgres

Sangfroid 2 ay önce
ebeveyn
işleme
c3fb906035
6 değiştirilmiş dosya ile 523 ekleme ve 211 silme
  1. 2 0
      .gitignore
  2. 18 0
      compose.override.yaml
  3. 25 0
      compose.yaml
  4. 1 24
      composer.json
  5. 321 31
      composer.lock
  6. 156 156
      yarn.lock

+ 2 - 0
.gitignore

@@ -23,3 +23,5 @@
 npm-debug.log
 yarn-error.log
 ###< symfony/webpack-encore-bundle ###
+
+/docker

+ 18 - 0
compose.override.yaml

@@ -0,0 +1,18 @@
+
+services:
+###> doctrine/doctrine-bundle ###
+  database:
+    ports:
+      - "5432:5432"
+###< doctrine/doctrine-bundle ###
+
+###> symfony/mailer ###
+  mailer:
+    image: axllent/mailpit
+    ports:
+      - "1025"
+      - "8025"
+    environment:
+      MP_SMTP_AUTH_ACCEPT_ANY: 1
+      MP_SMTP_AUTH_ALLOW_INSECURE: 1
+###< symfony/mailer ###

+ 25 - 0
compose.yaml

@@ -0,0 +1,25 @@
+
+services:
+###> doctrine/doctrine-bundle ###
+  database:
+    image: postgres:${POSTGRES_VERSION:-16}-alpine
+    environment:
+      POSTGRES_DB: ${POSTGRES_DB:-app}
+      # You should definitely change the password in production
+      POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-!ChangeMe!}
+      POSTGRES_USER: ${POSTGRES_USER:-app}
+    healthcheck:
+      test: ["CMD", "pg_isready", "-d", "${POSTGRES_DB:-app}", "-U", "${POSTGRES_USER:-app}"]
+      timeout: 5s
+      retries: 5
+      start_period: 60s
+    volumes:
+      #- database_data:/var/lib/postgresql/data:rw
+      # You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!
+      - ./docker/db/data:/var/lib/postgresql/data:rw
+###< doctrine/doctrine-bundle ###
+
+volumes:
+###> doctrine/doctrine-bundle ###
+  database_data:
+###< doctrine/doctrine-bundle ###

+ 1 - 24
composer.json

@@ -5,23 +5,6 @@
     "description": "A minimal Symfony project recommended to create bare bones applications",
     "minimum-stability": "stable",
     "prefer-stable": true,
-    "repositories": [
-        {
-            "packagist": false
-        },
-        {
-            "type": "composer",
-            "url": "http://nexus.intra.cnaf/repository/composer-proxy/"
-        },
-        {
-            "type": "composer",
-            "url": "http://nexus.intra.cnaf/repository/composer-snapshots/"
-        },
-        {
-            "type": "composer",
-            "url": "http://nexus.intra.cnaf/repository/composer-releases/"
-        }
-    ],
     "require": {
         "php": ">=8.1",
         "ext-ctype": "*",
@@ -65,7 +48,6 @@
         "twig/twig": "^2.12|^3.0"
     },
     "config": {
-        "secure-http": false,
         "allow-plugins": {
             "composer/package-versions-deprecated": true,
             "symfony/flex": true,
@@ -113,12 +95,7 @@
     "extra": {
         "symfony": {
             "allow-contrib": true,
-            "require": "6.4.*",
-            "endpoint": [
-                "https://gitlab.si.cnaf.info/api/v4/projects/48673/repository/files/index.json/raw?ref=main",
-                "https://gitlab.si.cnaf.info/cnaf/flex/recipes/-/raw/flex/main/index.json",
-                "https://gitlab.si.cnaf.info/cnaf/flex/recipes-contrib/-/raw/flex/main/index.json"
-            ]
+            "require": "6.4.*"
         }
     },
     "require-dev": {

Dosya farkı çok büyük olduğundan ihmal edildi
+ 321 - 31
composer.lock


Dosya farkı çok büyük olduğundan ihmal edildi
+ 156 - 156
yarn.lock


Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor