Skip to content

Commit

Permalink
Merge pull request #9 from IS-AgroSmart/feature/serve_static
Browse files Browse the repository at this point in the history
Serve the Django
  • Loading branch information
jreyesr authored Mar 30, 2021
2 parents 3aafa54 + 5320cac commit c1b0e37
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 176 deletions.
12 changes: 12 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,18 @@ services:
- "80:80"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
static_files:
image: nginx
volumes:
- ./app/staticfiles:/usr/share/nginx/html:ro
container_name: container-static-files
labels:
- "traefik.enable=true"
- "traefik.http.routers.static-files.rule=PathPrefix(`/static`)"
- "traefik.http.services.static-files.loadbalancer.server.port=80"
- "traefik.http.middlewares.static-files-compress.compress=true"
- "traefik.http.middlewares.static-files-stripprefix.stripprefix.prefixes=/static"
- "traefik.http.routers.static-files.middlewares=static-files-compress,static-files-stripprefix"
geoserver:
image: mxabierto/boundless-suite:efeabbd1a9afe9080acb5176c66ac4ec06408bb0
container_name: container-geoserver
Expand Down
48 changes: 0 additions & 48 deletions nginx/mime.types

This file was deleted.

128 changes: 0 additions & 128 deletions nginx/nginx.conf

This file was deleted.

0 comments on commit c1b0e37

Please sign in to comment.