Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
joerivanveen committed Aug 15, 2024
1 parent 95964a6 commit d171811
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 14 deletions.
3 changes: 1 addition & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ services:
###
# Main php container
#
# This container runs the php-fpm process and serves WordPress.
# This container runs the php-fpm process, optionally nginx, and serves Shopware.
#
# Requires the db container to be running.
#
Expand All @@ -11,7 +11,6 @@ services:
# - WordPress installation (in volume web-data)
# - Various tools: zsh, vim
#
# See https://github.com/myparcelnl/docker-images/pkgs/container/wordpress
##
shopware:
image: ghcr.io/myparcelnl/shopware
Expand Down
2 changes: 1 addition & 1 deletion images/shopware/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ WORKDIR ${ROOT_DIR}
RUN apk upgrade && \
# Add dependencies
apk add --no-cache \
# nginx for running on aws \
# To run in AWS \
nginx \
# ext-gd
freetype-dev \
Expand Down
9 changes: 1 addition & 8 deletions images/shopware/etc/nginx/http.d/default.conf
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@

server {
listen 80;
root /var/www/html;

# Handle / to index.php
index index.php;

# Where the code is located
root /var/www/html/public;

# Redirect to https
add_header Content-Security-Policy upgrade-insecure-requests;

# Needed for Shopware install / update
location /recovery/install {
index index.php;
Expand Down
4 changes: 1 addition & 3 deletions images/shopware/scripts/_helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,9 @@ link-paths() {

# Ignore if path is not a directory.
[ -d "${path}" ] || continue
# Overwrite existing symlinks.
unlink "$dest_path" 2> /dev/null

h2 "Linking $path => $dest_path"
ln -sf "$path" "$dest_path"
ln -snf "$path" "$dest_path"
done
else
h2 "No folders found in $source_dir"
Expand Down

0 comments on commit d171811

Please sign in to comment.