Skip to content

Commit e2668c2

Browse files
authored
Merge pull request #48 from codersforcauses/issue/NOISSUE-corrections-for-deployment-workshop
Corrections for Deployment workshop
2 parents b0b74b5 + cd3eb90 commit e2668c2

2 files changed

Lines changed: 5 additions & 9 deletions

File tree

.github/workflows/cd-pipeline.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
cache-to: type=gha,mode=max
4343
platforms: linux/amd64,linux/arm64
4444
build-args: |
45-
NEXT_PUBLIC_BACKEND_URL=http://localhost:8000
45+
NEXT_PUBLIC_BACKEND_URL="/api"
4646
- name: Output client image name
4747
if: github.event_name != 'pull_request'
4848
run: |

docker-compose.prod.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,22 @@ services:
1212
retries: 5
1313

1414
server:
15-
image: ghcr.io/codersforcauses/transplant-prod-server:latest
16-
container_name: transplant_server
15+
image: ghcr.io/codersforcauses/django-nextjs-template-prod-server:latest
1716
restart: unless-stopped
1817
env_file: ./.env.prod
1918
ports:
2019
- 8081:8081
2120
entrypoint: /entrypoint.sh
2221
volumes:
2322
- ./opt/accesslogs/:/var/log/accesslogs/
24-
- ./opt/static_files:/opt/static_files
23+
- ./opt/static_files:/app/static_files
2524
environment:
2625
- DJANGO_SETTINGS_MODULE=api.settings
2726
depends_on:
2827
- db
2928

3029
client:
31-
image: ghcr.io/codersforcauses/transplant-prod-client:latest
32-
container_name: transplant_client
30+
image: ghcr.io/codersforcauses/django-nextjs-template-prod-client:latest
3331
restart: unless-stopped
3432
env_file: ./.env.prod
3533
ports:
@@ -40,22 +38,20 @@ services:
4038

4139
nginx:
4240
image: nginx:stable-alpine3.21
43-
container_name: transplant_nginx
4441
restart: unless-stopped
4542
ports:
4643
- 80:80
4744
- 443:443
4845

4946
volumes:
5047
- ./docker/nginx/custom.conf:/etc/nginx/nginx.conf
51-
- ./opt/static_files:/app/static_files
48+
- ./opt/static_files:/opt/static_files/
5249
depends_on:
5350
- server
5451
- client
5552

5653
watchtower:
5754
image: containrrr/watchtower:latest
58-
container_name: transplant_watchtower
5955
restart: unless-stopped
6056
volumes:
6157
- /var/run/docker.sock:/var/run/docker.sock

0 commit comments

Comments
 (0)