Skip to content

Commit

Permalink
Added volumes which used to avoid use the default envs.
Browse files Browse the repository at this point in the history
  • Loading branch information
limingxinleo committed Aug 7, 2023
1 parent 354d537 commit 0805bea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ unit:
variables:
DOCKER_TLS_CERTDIR: ""
DOCKER_DRIVER: overlay2
before_script:
- cp .env.example .env
script:
- APP_ENV=test docker-compose up -d --remove-orphans --build
- docker exec $(basename $(pwd))_hyperf_1 composer install
Expand Down
4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ services:
APP_ENV: "${APP_ENV:-prod}"
DB_HOST: "mysql"
REDIS_HOST: "redis"
ports:
- "9501:9501"
volumes:
- "./.env.example:/opt/www/.env"
networks:
- net
restart: "always"
Expand Down

0 comments on commit 0805bea

Please sign in to comment.