Skip to content

Commit

Permalink
updates ngnix port
Browse files Browse the repository at this point in the history
  • Loading branch information
saxix committed Jan 10, 2025
1 parent bd98f1f commit 0bca497
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 21 deletions.
40 changes: 19 additions & 21 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,20 @@ volumes:
db:

services:
db:
image: postgres:16
environment:
- PGUSER=aurora
- POSTGRES_USER=aurora
- POSTGRES_PASSWORD=password
- POSTGRES_DB=aurora

redis:
image: redis:7
restart: unless-stopped

app:
image: unicef/hope-aurora:2.0-dist
stdin_open: true
tty: true
environment:
Expand All @@ -15,6 +28,7 @@ services:
- CSRF_COOKIE_SECURE=False
- CSRF_TRUSTED_ORIGINS=http://localhost:8000,http://localhost
- DATABASE_URL=postgres://aurora:password@db:5432/aurora
- DEFAULT_ORGANIZATION=UNICEF
- DEBUG=true
- DJANGO_ADMIN_URL=admin/
- FERNET_KEY=3bfbbad7d5e149e9b313fd47d33db5e6
Expand All @@ -32,29 +46,13 @@ services:
- STATIC_URL=/static/
- USE_HTTPS=false
- USE_X_FORWARDED_HOST=false
build:
context: ./
dockerfile: ./docker/Dockerfile
target: dev
# build:
# context: ./
# dockerfile: ./docker/Dockerfile
# target: dev
ports:
- "8000:80" # expose nginx here
- "8000:8000" # expose nginx here
# - "8000:8000"
depends_on:
- db
- redis

db:
image: postgres:16
environment:
- PGUSER=aurora
- POSTGRES_USER=aurora
- POSTGRES_PASSWORD=password
- POSTGRES_DB=aurora
volumes:
- db:/var/lib/postgresql/data

redis:
image: redis:7
restart: unless-stopped
# expose:
# - "6379"
1 change: 1 addition & 0 deletions docker/conf/nginx.conf.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ http {
large_client_header_buffers 4 16k;
access_log /dev/stdout;
listen 8000;
listen 80;
proxy_no_cache 1;
proxy_cache_bypass 1;
proxy_cache off;
Expand Down

0 comments on commit 0bca497

Please sign in to comment.