Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/cd-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
cache-to: type=gha,mode=max
platforms: linux/amd64,linux/arm64
build-args: |
NEXT_PUBLIC_BACKEND_URL=http://localhost:8000
NEXT_PUBLIC_BACKEND_URL="/api"
- name: Output client image name
if: github.event_name != 'pull_request'
run: |
Expand Down
12 changes: 4 additions & 8 deletions docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,22 @@ services:
retries: 5

server:
image: ghcr.io/codersforcauses/transplant-prod-server:latest
container_name: transplant_server
image: ghcr.io/codersforcauses/django-nextjs-template-prod-server:latest
restart: unless-stopped
env_file: ./.env.prod
ports:
- 8081:8081
entrypoint: /entrypoint.sh
volumes:
- ./opt/accesslogs/:/var/log/accesslogs/
- ./opt/static_files:/opt/static_files
- ./opt/static_files:/app/static_files
environment:
- DJANGO_SETTINGS_MODULE=api.settings
depends_on:
- db

client:
image: ghcr.io/codersforcauses/transplant-prod-client:latest
container_name: transplant_client
image: ghcr.io/codersforcauses/django-nextjs-template-prod-client:latest
restart: unless-stopped
env_file: ./.env.prod
ports:
Expand All @@ -40,22 +38,20 @@ services:

nginx:
image: nginx:stable-alpine3.21
container_name: transplant_nginx
restart: unless-stopped
ports:
- 80:80
- 443:443

volumes:
- ./docker/nginx/custom.conf:/etc/nginx/nginx.conf
- ./opt/static_files:/app/static_files
- ./opt/static_files:/opt/static_files/
depends_on:
- server
- client

watchtower:
image: containrrr/watchtower:latest
container_name: transplant_watchtower
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
Expand Down