Skip to content

Commit

Permalink
A few docker-compose and env tweaks to bring up the new-api server
Browse files Browse the repository at this point in the history
  • Loading branch information
oscgonfer committed Jan 24, 2024
1 parent c817499 commit 5580f40
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion compose/db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ services:
image: postgres:10
volumes:
- sck-postgres:/var/lib/postgresql/data
env_file: ../.env
#environment:
# NOTE: Postgres 9.5 stopped allowing connections without passwords.
# Enable this if needed.
#- POSTGRES_HOST_AUTH_METHOD=trust
volumes:
sck-postgres:
sck-postgres:
3 changes: 3 additions & 0 deletions env.example
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ kairos_http_password=some_password

# AUTH ID
AUTH_SECRET_KEY_BASE=CreateSomeVeryLongLongLongRandomStringHere

# Postgres password (needs to be the same as in the DATABASE_URL above)
POSTGRES_PASSWORD=postgres
2 changes: 1 addition & 1 deletion scripts/nginx-conf/api.smartcitizen.me.conf
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ server {
}

server {
server_name api.smartcitizen.me data.smartcitizen.me staging-api.smartcitizen.me staging-data.smartcitizen.me;
server_name api.smartcitizen.me data.smartcitizen.me staging-api.smartcitizen.me staging-data.smartcitizen.me new-api.smartcitizen.me;

listen 80;
listen [::]:80;
Expand Down

0 comments on commit 5580f40

Please sign in to comment.