Skip to content

Commit a1c7556

Browse files
committed
Fix CI/CD
1 parent f075644 commit a1c7556

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

docker-compose-branch.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ services:
2828
networks:
2929
- api-php
3030
environment:
31-
- "MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}"
32-
- "MYSQL_USER=${MYSQL_USER}"
33-
- "MYSQL_PASSWORD=${MYSQL_PASSWORD}"
34-
- "MYSQL_DATABASE=${MYSQL_DATABASE}"
31+
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
32+
MYSQL_USER: ${MYSQL_USER}
33+
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
34+
MYSQL_DATABASE: ${MYSQL_DATABASE}
3535
healthcheck:
3636
test: [ "CMD", "mysqladmin", "ping", "-h", "localhost", "--silent" ]
3737
interval: 5s
@@ -47,8 +47,13 @@ services:
4747
# - "6379:6379"
4848
networks:
4949
- api-php
50+
healthcheck:
51+
test: [ "CMD", "redis-cli", "ping" ]
52+
interval: 5s
53+
timeout: 3s
54+
retries: 5
5055
restart: unless-stopped
51-
command: ["redis-server", "--appendonly", "yes"]
56+
command: [ "redis-server", "--appendonly", "yes" ]
5257

5358
adminer:
5459
image: adminer

0 commit comments

Comments
 (0)