Configure CORS
This commit is contained in:
parent
e5d0219df8
commit
44c9f0e705
4 changed files with 32 additions and 7 deletions
|
|
@ -1,12 +1,12 @@
|
|||
services:
|
||||
db:
|
||||
image: postgres:16
|
||||
container_name: uprs_db
|
||||
container_name: upvoters_db
|
||||
restart: always
|
||||
environment:
|
||||
POSTGRES_USER: uprs
|
||||
POSTGRES_USER: upvoters
|
||||
POSTGRES_PASSWORD: password123
|
||||
POSTGRES_DB: uprs
|
||||
POSTGRES_DB: upvoters
|
||||
volumes:
|
||||
- pgdata:/var/lib/postgresql/data
|
||||
- ./db/migrations:/docker-entrypoint-initdb.d # run initial schema
|
||||
|
|
@ -15,10 +15,11 @@ services:
|
|||
|
||||
app:
|
||||
build: .
|
||||
container_name: uprs_app
|
||||
container_name: upvoters_app
|
||||
restart: always
|
||||
environment:
|
||||
POSTGRES_CONNECTION_STRING: postgres://uprs:password123@db:5432/uprs
|
||||
POSTGRES_CONNECTION_STRING: postgres://upvoters:password123@db:5432/upvoters
|
||||
ALLOWED_ORIGINS: http://localhost:1313
|
||||
ports:
|
||||
- "3000:3000"
|
||||
depends_on:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue