mirror of
https://github.com/penpot/penpot.git
synced 2025-01-24 07:29:08 -05:00
💚 Fix docker-compose run
This commit is contained in:
parent
f035228072
commit
4b9195e8e5
2 changed files with 8 additions and 4 deletions
|
@ -18,6 +18,8 @@ services:
|
|||
- "POSTGRES_PASSWORD=uxbox_postgres_password"
|
||||
volumes:
|
||||
- db_data:/var/lib/postgresql/data
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
|
||||
uxbackend:
|
||||
build: ./backend
|
||||
|
@ -59,14 +61,15 @@ services:
|
|||
build: ./frontend
|
||||
#image: monogramm/uxbox:frontend
|
||||
container_name: uxfrontend
|
||||
#hostname: uxbox.${DOMAIN}
|
||||
#hostname: uxbox.io
|
||||
#restart: always
|
||||
depends_on:
|
||||
- uxbackend
|
||||
ports:
|
||||
- 80:80
|
||||
environment:
|
||||
#- "API_URL=http://uxbox.${DOMAIN}/api/"
|
||||
- "API_URL=http://localhost:6060/api/"
|
||||
#- "API_URL=http://uxbox.io/api/"
|
||||
volumes:
|
||||
#- /srv/uxbox/frontend/html:/usr/share/nginx/html
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
|
|
|
@ -25,7 +25,8 @@ server {
|
|||
|
||||
# Reverse Proxy to Backend (Avoids XSS concerns) --Update api to be whatever your site uses to access your backend
|
||||
location /api/ {
|
||||
proxy_pass http://backend;
|
||||
#proxy_pass http://backend;
|
||||
proxy_pass http://uxbackend:6060;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection 'upgrade';
|
||||
|
@ -35,7 +36,7 @@ server {
|
|||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
||||
# IMPORTANT: Update my.uxbox.com to your production site. This will allow cookies to work as expected when using your deployment locally
|
||||
proxy_cookie_domain localhost my.uxbox.com;
|
||||
#proxy_cookie_domain localhost my.uxbox.com;
|
||||
}
|
||||
|
||||
# Application
|
||||
|
|
Loading…
Add table
Reference in a new issue