Skip to content

Commit

Permalink
Update Dockerfile and deployment scripts for NGINX and Minio services.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cdaprod committed Mar 22, 2024
1 parent 17600ba commit 4874c55
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 6 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/build-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,13 @@ jobs:
file: ./weaviate/Dockerfile
push: true
tags: cdaprod/cda-weaviate:latest
platforms: linux/amd64,linux/arm64

- name: Build and push custom NGINX image
uses: docker/build-push-action@v3
with:
context: ./nginx
file: ./nginx/Dockerfile
push: true
tags: cdaprod/cda-nginx:latest
platforms: linux/amd64,linux/arm64
6 changes: 3 additions & 3 deletions .github/workflows/deploy-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ jobs:

- name: Deploy MinIO Stack
run: |
export MINIO_ROOT_USER=${{ secrets.MINIO_ACCESS_KEY }}
export MINIO_ROOT_PASSWORD=${{ secrets.MINIO_SECRET_KEY }}
export MINIO_ROOT_USER=${{ secrets.MINIO_ROOT_USER }}
export MINIO_ROOT_PASSWORD=${{ secrets.MINIO_ROOT_PASSWORD }}
docker stack deploy -c ./minio/docker-compose.minio.yaml minio_stack
- name: Deploy Weaviate Stack
Expand All @@ -33,4 +33,4 @@ jobs:
- name: Deploy NGINX Stack
run: |
# Set any environment variables for NGINX here
# docker stack deploy -c ./nginx-server/docker-compose.nginx.yaml nginx_stack
docker stack deploy -c ./nginx/docker-compose.nginx.yaml nginx_stack
5 changes: 2 additions & 3 deletions minio/docker-compose.minio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@ version: '3.8'
services:
minio:
image: cdaprod/cda-minio:latest
container_name: cda_minio
volumes:
- minio_data:/data
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: ${MINIO_ACCESS_KEY}
MINIO_ROOT_PASSWORD: ${MINIO_SECRET_KEY}
MINIO_ROOT_USER: ${MINIO_ROOT_USER}
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD}
command: server /data --console-address ":9001"
networks:
- app_network
Expand Down
9 changes: 9 additions & 0 deletions nginx/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM nginx:latest

# Copy the custom NGINX config file into the container
COPY nginx.conf /etc/nginx/nginx.conf

# Expose port 80 for HTTP traffic
EXPOSE 80

# NGINX runs by default; no custom ENTRYPOINT or CMD is needed.

0 comments on commit 4874c55

Please sign in to comment.