forked from hoppscotch/hoppscotch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
63 lines (57 loc) · 1.54 KB
/
docker-compose.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
52
53
54
55
56
57
58
59
60
61
62
# THIS IS NOT TO BE USED FOR PERSONAL DEPLOYMENTS!
# Internal Docker Compose Image used for internal testing deployments
version: "3.7"
services:
hoppscotch-db:
image: postgres:15
user: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: testpass
POSTGRES_DB: hoppscotch
healthcheck:
test:
[
"CMD-SHELL",
"sh -c 'pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}'"
]
interval: 5s
timeout: 5s
retries: 10
networks:
- hoppscotch-network
hoppscotch-migrate:
container_name: hoppscotch-migrate
image: hoppscotch/hoppscotch
environment:
- DATABASE_URL=postgresql://postgres:testpass@hoppscotch-db:5432/hoppscotch
- ENABLE_SUBPATH_BASED_ACCESS=true
env_file:
- ./.env
depends_on:
hoppscotch-db:
condition: service_healthy
command: ["sh", "-c", "pnpm exec prisma migrate deploy"]
networks:
- hoppscotch-network
networks:
hoppscotch-network:
driver: bridge
# hoppscotch-aio:
# container_name: hoppscotch-aio
# image: hoppscotch/hoppscotch
# environment:
# - DATABASE_URL=postgresql://postgres:testpass@hoppscotch-db:5432/hoppscotch
# - ENABLE_SUBPATH_BASED_ACCESS=true
# env_file:
# - ./.env
# depends_on:
# hoppscotch-db:
# condition: service_healthy
# hoppscotch-migrate:
# condition: service_completed_successfully
# ports:
# - "3000:3000"
# - "3100:3100"
# - "3170:3170"
# - "3080:80"