Skip to content

Commit

Permalink
Got dify running on Mac 14.1.2 (23B92) with colima
Browse files Browse the repository at this point in the history
  • Loading branch information
boxabirds committed Jun 17, 2024
1 parent d7213b1 commit 5e68113
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 21 deletions.
7 changes: 5 additions & 2 deletions docker/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ services:
# postgres data directory
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- ./volumes/db/data:/var/lib/postgresql/data
- postgres_data:/var/lib/postgresql/data
# uncomment to expose db(postgresql) port to host
# ports:
# - "5432:5432"
Expand All @@ -402,7 +402,7 @@ services:
restart: always
volumes:
# Mount the redis data directory to the container.
- ./volumes/redis/data:/data
- redis_data:/data
# Set the redis password when startup redis server.
command: redis-server --requirepass difyai123456
healthcheck:
Expand Down Expand Up @@ -524,6 +524,9 @@ services:
ports:
- "80:80"
#- "443:443"
volumes:
postgres_data:
redis_data:
networks:
# create a network between sandbox, api and ssrf_proxy, and can not access outside.
ssrf_proxy_network:
Expand Down
33 changes: 14 additions & 19 deletions docker/nginx/conf.d/default.conf
Original file line number Diff line number Diff line change
@@ -1,38 +1,33 @@
upstream api {
server docker-api-1:5001;
}

server {
listen 80;
server_name _;

location /console/api {
proxy_pass http://api:5001;
include proxy.conf;
proxy_pass http://api;
include proxy.conf;
}

location /api {
proxy_pass http://api:5001;
include proxy.conf;
proxy_pass http://api;
include proxy.conf;
}

location /v1 {
proxy_pass http://api:5001;
include proxy.conf;
proxy_pass http://api;
include proxy.conf;
}

location /files {
proxy_pass http://api:5001;
include proxy.conf;
proxy_pass http://api;
include proxy.conf;
}

location / {
proxy_pass http://web:3000;
include proxy.conf;
proxy_pass http://web:3000;
include proxy.conf;
}

# If you want to support HTTPS, please uncomment the code snippet below
#listen 443 ssl;
#ssl_certificate ./../ssl/your_cert_file.cer;
#ssl_certificate_key ./../ssl/your_cert_key.key;
#ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;
#ssl_prefer_server_ciphers on;
#ssl_session_cache shared:SSL:10m;
#ssl_session_timeout 10m;
}

0 comments on commit 5e68113

Please sign in to comment.