-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (33 loc) · 921 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (33 loc) · 921 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# 3Dify — docker-compose for VPS deployment
#
# If you already have PostgreSQL running externally (e.g. on the host),
# remove the `db` service and `depends_on` block, and set DATABASE_URL
# directly in your .env file pointing to your existing Postgres instance.
services:
server:
build: ./server
restart: unless-stopped
env_file: .env
ports:
- "8080:8080"
volumes:
- ./data/uploads:/app/uploads
- ./data/outputs:/app/outputs
depends_on:
- db
frontend:
build: ./frontend
restart: unless-stopped
ports:
- "3000:80"
db:
image: postgres:15
restart: unless-stopped
environment:
POSTGRES_DB: ${POSTGRES_DB:-threedify}
POSTGRES_USER: ${POSTGRES_USER:-threedify}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?Set POSTGRES_PASSWORD in .env}
volumes:
- postgres_data:/var/lib/postgresql/data
volumes:
postgres_data: