Skip to content

Commit

Permalink
fix: delete public docker volume for cache
Browse files Browse the repository at this point in the history
  • Loading branch information
komtaki committed Aug 7, 2021
1 parent 47230c3 commit fc5e6eb
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
3 changes: 0 additions & 3 deletions deployments/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ services:
- ./etc/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./etc/nginx/conf.d:/etc/nginx/conf.d
- /var/log/nginx:/var/log/nginx
- static-public:/app/public
environment:
TZ: Asia/Tokyo
ports:
Expand All @@ -19,8 +18,6 @@ services:

app:
image: "{RepositoryName}"
volumes:
- static-public:/app/public
environment:
NEW_RELIC_APP_NAME: decidim-app({EBEnvironment})
env_file:
Expand Down
6 changes: 1 addition & 5 deletions deployments/etc/nginx/conf.d/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@ server {
access_log /var/log/nginx/access.log main;
access_log /var/log/nginx/healthd/application.log.$year-$month-$day-$hour healthd;

root /app/public;

try_files $uri $uri @app;

location @app {
location / {
proxy_pass http://app:3000;
proxy_http_version 1.1;
proxy_set_header Connection $connection_upgrade;
Expand Down
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ services:
volumes:
- ./deployments/etc/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./deployments/etc/nginx/conf.d:/etc/nginx/conf.d
- ./public:/app/public
environment:
TZ: Asia/Tokyo
ports:
Expand Down

0 comments on commit fc5e6eb

Please sign in to comment.