Skip to content

Commit f439ec0

Browse files
committed
Change source files directory in Docker and Caddy configuration
1 parent ad90f7e commit f439ec0

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
FROM docker.io/php:8.2-fpm
22

3-
COPY ./public /app
3+
COPY ./public /opt/index/public
4+
5+
WORKDIR /opt/index/public
46

57
CMD ["php-fpm"]

docker-compose.dev.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services:
66
app:
77
build: .
88
volumes:
9-
- ./public:/app
9+
- ./public:/opt/index/public
1010
networks:
1111
- web-network
1212

@@ -16,7 +16,7 @@ services:
1616
- "8000:80"
1717
volumes:
1818
- caddy_data:/data
19-
- ./public:/app
19+
- ./public:/opt/index/public
2020
- ./docker/caddy/Caddyfile:/etc/caddy/Caddyfile
2121
depends_on:
2222
- app

docker/caddy/Caddyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
:80 {
2-
root * /app
2+
root * /opt/index/public
33
php_fastcgi app:9000
44
file_server
55
}

0 commit comments

Comments
 (0)