Skip to content

Commit

Permalink
fix docker files
Browse files Browse the repository at this point in the history
  • Loading branch information
tudddorrr committed Apr 27, 2024
1 parent 633b428 commit b38fae3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
7 changes: 4 additions & 3 deletions docker-compose.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ services:
- test-network

test-redis:
image: arm64v8/redis:7-alpine
command: redis-server --requirepass ${REDIS_PASSWORD}
image: bitnami/redis:7.2
environment:
- REDIS_PASSWORD=${REDIS_PASSWORD}
ports:
- ${REDIS_PORT}:6379
depends_on:
Expand All @@ -32,7 +33,7 @@ services:
- test-network

stripe-api:
image: stripe/stripe-mock:latest-arm64
image: stripe/stripe-mock:latest
ports:
- 12111:12111
- 12112:12112
Expand Down
7 changes: 3 additions & 4 deletions docker-compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ services:
- test-network

test-redis:
image: bitnami/redis:7.2
environment:
- REDIS_PASSWORD=${REDIS_PASSWORD}
image: arm64v8/redis:7-alpine
command: redis-server --requirepass ${REDIS_PASSWORD}
ports:
- ${REDIS_PORT}:6379
depends_on:
Expand All @@ -33,7 +32,7 @@ services:
- test-network

stripe-api:
image: stripe/stripe-mock:latest
image: stripe/stripe-mock:latest-arm64
ports:
- 12111:12111
- 12112:12112
Expand Down
4 changes: 2 additions & 2 deletions tests/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
export $(cat envs/.env.test | xargs)

if [ -z "$CI" ]; then
alias dc="docker-compose -f docker-compose.test.yml"
alias dc="docker-compose -f docker-compose.test.yml"
else
alias dc="docker-compose -f docker-compose.ci.yml"
alias dc="docker-compose -f docker-compose.ci.yml"
fi

trap "cleanup" EXIT
Expand Down

0 comments on commit b38fae3

Please sign in to comment.