Skip to content

Commit

Permalink
Change source files directory in Docker and Caddy configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackenmen committed Apr 25, 2023
1 parent ad90f7e commit f439ec0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM docker.io/php:8.2-fpm

COPY ./public /app
COPY ./public /opt/index/public

WORKDIR /opt/index/public

CMD ["php-fpm"]
4 changes: 2 additions & 2 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
app:
build: .
volumes:
- ./public:/app
- ./public:/opt/index/public
networks:
- web-network

Expand All @@ -16,7 +16,7 @@ services:
- "8000:80"
volumes:
- caddy_data:/data
- ./public:/app
- ./public:/opt/index/public
- ./docker/caddy/Caddyfile:/etc/caddy/Caddyfile
depends_on:
- app
Expand Down
2 changes: 1 addition & 1 deletion docker/caddy/Caddyfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:80 {
root * /app
root * /opt/index/public
php_fastcgi app:9000
file_server
}

0 comments on commit f439ec0

Please sign in to comment.