Skip to content

Commit

Permalink
refactor: move docker-config to a hidden .docker-config dir
Browse files Browse the repository at this point in the history
  • Loading branch information
khalwat committed Jan 9, 2025
1 parent ac7ef1d commit 611b3e9
Show file tree
Hide file tree
Showing 11 changed files with 6 additions and 6 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
# nginx - web server
nginx:
build:
context: ./docker-config/nginx
context: ./.docker-config/nginx
dockerfile: ./Dockerfile
env_file: &env
- ./cms/.env
Expand All @@ -19,7 +19,7 @@ services:
# php - run php-fpm
php:
build: &php-build
context: ./docker-config/php-prod-craft
context: ./.docker-config/php-prod-craft
dockerfile: ./Dockerfile
depends_on:
- "postgres"
Expand All @@ -43,7 +43,7 @@ services:
# php - run php-fpm with xdebug
php_xdebug:
build:
context: ./docker-config/php-dev-craft
context: ./.docker-config/php-dev-craft
dockerfile: ./Dockerfile
depends_on:
- "php"
Expand All @@ -59,7 +59,7 @@ services:
# postgres - database
postgres:
build:
context: ./docker-config/postgres
context: ./.docker-config/postgres
dockerfile: ./Dockerfile
env_file:
*env
Expand Down Expand Up @@ -90,15 +90,15 @@ services:
# redis - key/value database for caching & php sessions
redis:
build:
context: ./docker-config/redis
context: ./.docker-config/redis
dockerfile: ./Dockerfile
expose:
- "6379"
init: true
# vite - frontend build system
vite:
build:
context: ./docker-config/node-dev-vite
context: ./.docker-config/node-dev-vite
dockerfile: ./Dockerfile
env_file:
*env
Expand Down

0 comments on commit 611b3e9

Please sign in to comment.