Skip to content

Commit

Permalink
changed readme and nginx docker
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenaH84 committed Oct 29, 2024
1 parent 016a75c commit 25ce475
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 31 deletions.
18 changes: 0 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,6 @@ For the Docker image that serves as a Web socket API and runs the BattMo.jl pack
docker pull ghcr.io/battmoteam/battmoapp_api:latest
```

And for the production server Nginx:

```<bash>
docker pull ghcr.io/battmoteam/battmogui_nginx:latest
```

Run the images in containers by using a docker compose file. Create a docker-compose.yml file with the following content:

```<docker>
Expand All @@ -58,18 +52,6 @@ services:
- "8080:8080"
command: julia --project=. -e 'include("api.jl")' --color=yes --depwarn=no --project=@. --sysimage="pre-compilation/sysimage.so" -q -i -- $$(dirname $$0)/../bootstrap.jl -s=true "$$@"
nginx:
image: ghcr.io/battmoteam/battmoapp_nginx:latest
build: ./nginx
container_name: nginx
restart: always
ports:
- "8001:8001"
- "8002:8002"
depends_on:
- api
- gui
gui:
image: ghcr.io/battmoteam/battmoapp_gui:latest
build: ./gui
Expand Down
13 changes: 0 additions & 13 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,7 @@ services:
# command: julia --project=. -e 'include("api.jl")' --color=yes --depwarn=no --project=@. --sysimage="pre-compilation/sysimage.so" -q -i -- $$(dirname $$0)/../bootstrap.jl -s=true "$$@"

command: julia --project=. -e 'include("api.jl")'

nginx:
build: ./nginx
container_name: nginx
restart: always
ports:
- "8001:8001"
- "8002:8002"
volumes:
- ./nginx:/app

depends_on:
- api
- gui

gui:
build: ./gui
Expand Down
Binary file modified gui/output_files/battmo_results.hdf5
Binary file not shown.
6 changes: 6 additions & 0 deletions nginx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ RUN mkdir -p /usr/share/nginx/html/.well-known/acme-challenge && \
chown -R www-data:www-data /usr/share/nginx/html/.well-known && \
chmod -R 755 /usr/share/nginx/html/.well-known

# Change ownership and permissions for the relevant directories
RUN chown -R www-data:www-data /etc/letsencrypt /usr/share/nginx/html && \
chmod -R 755 /etc/letsencrypt /usr/share/nginx/html

# Remove default Nginx configuration files
RUN rm /etc/nginx/nginx.conf
RUN rm /etc/nginx/conf.d/default.conf
Expand All @@ -22,3 +26,5 @@ COPY project.conf /etc/nginx/conf.d/
# Copy SSL certificate renewal script
COPY renew-certs.sh /renew-certs.sh
RUN chmod +x /renew-certs.sh


0 comments on commit 25ce475

Please sign in to comment.