-
Notifications
You must be signed in to change notification settings - Fork 89
/
Copy pathdocker-compose.prod.yml
51 lines (48 loc) · 1.2 KB
/
docker-compose.prod.yml
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
services:
nginx:
image: nginx:latest
ports:
- "${NGINX_PORT:-6080}:80"
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
depends_on:
- backend
- frontend
restart: on-failure
backend:
image: ghcr.io/${GITHUB_REPOSITORY:-pyspur-dev/pyspur}-backend:${VERSION:-latest}
command: bash /pyspur/backend/entrypoint.sh
env_file:
- ./.env.example
- ./.env
volumes:
- ./.env:/pyspur/backend/.env
- pyspur_data:/pyspur/backend/data
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
db:
condition: service_healthy
frontend:
image: ghcr.io/${GITHUB_REPOSITORY:-pyspur-dev/pyspur}-frontend:${VERSION:-latest}
command: npm run start
env_file:
- ./.env.example
- ./.env
depends_on:
- backend
db:
image: postgres:17-alpine
restart: on-failure
env_file:
- ./.env.example
- ./.env
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U pyspur']
interval: 5s
timeout: 5s
volumes:
postgres_data:
pyspur_data: # Used to persist data like uploaded files, eval outputs, datasets