feat: try fix ci cd
This commit is contained in:
parent
0d1ecacd3f
commit
95ebc2b95d
|
|
@ -110,7 +110,6 @@ deploy-to-portainer:
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
--data "$JSON_PAYLOAD")
|
--data "$JSON_PAYLOAD")
|
||||||
|
|
||||||
|
|
||||||
CREATE_BODY=$(echo "$CREATE_RESP" | sed -e 's/HTTPSTATUS:.*//g')
|
CREATE_BODY=$(echo "$CREATE_RESP" | sed -e 's/HTTPSTATUS:.*//g')
|
||||||
CREATE_STATUS=$(echo "$CREATE_RESP" | tr -d '\n' | sed -e 's/.*HTTPSTATUS://')
|
CREATE_STATUS=$(echo "$CREATE_RESP" | tr -d '\n' | sed -e 's/.*HTTPSTATUS://')
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
version: "3.8"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
treasure-api:
|
treasure-api:
|
||||||
image: registry.gitlab.com/treasure-hunt4/treasure-api:latest
|
image: registry.gitlab.com/treasure-hunt4/treasure-api:latest
|
||||||
|
|
@ -5,18 +7,18 @@ services:
|
||||||
depends_on:
|
depends_on:
|
||||||
- treasure-api-migrate
|
- treasure-api-migrate
|
||||||
ports:
|
ports:
|
||||||
- "8000:80"
|
- "8000:80" # API dispo sur http://IP_DU_SERVEUR:8000
|
||||||
environment:
|
environment:
|
||||||
APP_ENV: production
|
APP_ENV: "production"
|
||||||
APP_KEY: ${APP_KEY}
|
APP_KEY: "${APP_KEY}"
|
||||||
APP_DEBUG: "false"
|
APP_DEBUG: "false"
|
||||||
|
|
||||||
DB_CONNECTION: mysql
|
DB_CONNECTION: "mysql"
|
||||||
DB_HOST: mysql
|
DB_HOST: "mysql"
|
||||||
DB_PORT: 3306
|
DB_PORT: 3306
|
||||||
DB_DATABASE: ${DB_DATABASE}
|
DB_DATABASE: "${DB_DATABASE}"
|
||||||
DB_USERNAME: ${DB_USERNAME}
|
DB_USERNAME: "${DB_USERNAME}"
|
||||||
DB_PASSWORD: ${DB_PASSWORD}
|
DB_PASSWORD: "${DB_PASSWORD}"
|
||||||
|
|
||||||
treasure-api-migrate:
|
treasure-api-migrate:
|
||||||
image: registry.gitlab.com/treasure-hunt4/treasure-api:latest
|
image: registry.gitlab.com/treasure-hunt4/treasure-api:latest
|
||||||
|
|
@ -24,15 +26,15 @@ services:
|
||||||
depends_on:
|
depends_on:
|
||||||
- mysql
|
- mysql
|
||||||
environment:
|
environment:
|
||||||
APP_ENV: production
|
APP_ENV: "production"
|
||||||
APP_KEY: ${APP_KEY}
|
APP_KEY: "${APP_KEY}"
|
||||||
|
|
||||||
DB_CONNECTION: mysql
|
DB_CONNECTION: "mysql"
|
||||||
DB_HOST: mysql
|
DB_HOST: "mysql"
|
||||||
DB_PORT: 3306
|
DB_PORT: 3306
|
||||||
DB_DATABASE: ${DB_DATABASE}
|
DB_DATABASE: "${DB_DATABASE}"
|
||||||
DB_USERNAME: ${DB_USERNAME}
|
DB_USERNAME: "${DB_USERNAME}"
|
||||||
DB_PASSWORD: ${DB_PASSWORD}
|
DB_PASSWORD: "${DB_PASSWORD}"
|
||||||
|
|
||||||
command: ["php", "artisan", "migrate", "--force", "--no-interaction"]
|
command: ["php", "artisan", "migrate", "--force", "--no-interaction"]
|
||||||
|
|
||||||
|
|
@ -40,14 +42,14 @@ services:
|
||||||
image: mysql:8.0
|
image: mysql:8.0
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
|
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD}"
|
||||||
MYSQL_DATABASE: ${DB_DATABASE}
|
MYSQL_DATABASE: "${DB_DATABASE}"
|
||||||
MYSQL_USER: ${DB_USERNAME}
|
MYSQL_USER: "${DB_USERNAME}"
|
||||||
MYSQL_PASSWORD: ${DB_PASSWORD}
|
MYSQL_PASSWORD: "${DB_PASSWORD}"
|
||||||
volumes:
|
volumes:
|
||||||
- mysql-data:/var/lib/mysql
|
- mysql-data:/var/lib/mysql
|
||||||
ports:
|
ports:
|
||||||
- "3307:3306" # optionnel, juste si tu veux accéder à MySQL depuis l'extérieur
|
- "3307:3306" # Optionnel, pour accès externe à MySQL
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
mysql-data:
|
mysql-data:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue