GitBucket
4.23.1
Toggle navigation
Sign in
Files
Branches
1
Releases
Issues
Pull requests
Labels
Priorities
Milestones
Wiki
Forks
hincoco
/
LaravelSample
Browse code
絶対パス二変更
main
1 parent
16dde98
commit
cb7872c54279c92f1125a48be0148388c0bee9a2
Shinya Tomozumi
authored
on 21 May
Patch
Showing
3 changed files
docker-compose.override.jenkins.yml
docker-compose.override.local.yml
docker-compose.yml
Ignore Space
Show notes
View
docker-compose.override.jenkins.yml
0 → 100644
# For Jenkins CI/CD services: # PHP Service web_app: volumes: - /var/jenkins_home/workspace/LaravelSampleTest/src/:/app/ # パスを絶対パスに変更 # Nginx Service web_nginx: volumes: - /var/jenkins_home/workspace/LaravelSampleTest/src/:/app/ # パスを絶対パスに変更
Ignore Space
Show notes
View
docker-compose.override.local.yml
services: # PHP Service web_app: build: args: BUILD_ENV: debug volumes: - ./src/:/app/ - ./.docker/web/php/develop/docker-php-ext-xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini - ./.docker/web/php/develop/php.dev.ini:/usr/local/etc/php/conf.d/php.dev.ini - ./.docker/web/nginx/conf.d:/etc/nginx/conf.d - ./.docker/web/nginx/nginx.conf:/etc/nginx/nginx.conf # Nginx Service web_nginx: ports: - "9084:80" volumes: - ./src/:/app/
services: # PHP Service web_app: build: args: BUILD_ENV: debug volumes: - ./.docker/web/php/develop/docker-php-ext-xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini - ./.docker/web/php/develop/php.dev.ini:/usr/local/etc/php/conf.d/php.dev.ini # Nginx Service web_nginx: ports: - "9084:80"
Ignore Space
Show notes
View
docker-compose.yml
services: # PHP Service web_app: container_name: web_app build: context: . dockerfile: .docker/web/php/Dockerfile depends_on: - database volumes: - ./.docker/logs/web/php:/var/log/php # Nginx Service web_nginx: container_name: web-nginx build: context: . dockerfile: .docker/web/nginx/Dockerfile depends_on: - database volumes: - ./.docker/logs/web/nginx:/var/log/nginx # Database Service database: image: postgres:17.5-alpine3.21 container_name: database ports: - "5432:5432" restart: unless-stopped environment: POSTGRES_DB: sample-db POSTGRES_USER: postgres POSTGRES_PASSWORD: testpassword volumes: - ./.docker/db_data:/var/lib/postgresql/data - ./.docker/logs/db:/var/log/postgresql healthcheck: test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"] interval: 5s timeout: 5s retries: 5 volumes: db-volumes:
services: # PHP Service web_app: container_name: web_app build: context: . dockerfile: .docker/web/php/Dockerfile depends_on: - database volumes: - ./src/:/app/ - ./.docker/logs/web/php:/var/log/php # Nginx Service web_nginx: container_name: web-nginx build: context: . dockerfile: .docker/web/nginx/Dockerfile depends_on: - database volumes: - ./src/:/app/ - ./.docker/logs/web/nginx:/var/log/nginx # Database Service database: image: postgres:17.5-alpine3.21 container_name: database ports: - "5432:5432" restart: unless-stopped environment: POSTGRES_DB: sample-db POSTGRES_USER: postgres POSTGRES_PASSWORD: testpassword volumes: - ./.docker/db_data:/var/lib/postgresql/data - ./.docker/logs/db:/var/log/postgresql healthcheck: test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"] interval: 5s timeout: 5s retries: 5 volumes: db-volumes:
Show line notes below