-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
52 lines (51 loc) · 1.28 KB
/
docker-compose.yaml
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
# SPDX-FileCopyrightText: 2024 The Forkbomb Company
#
# SPDX-License-Identifier: AGPL-3.0-or-later
services:
be:
image: starters-pb:latest
build:
context: ./
dockerfile: ./admin/Dockerfile
ports:
- 8090:8090
volumes:
- type: bind
source: ./admin/pb_public
target: /app/pb_public
- type: bind
source: ./admin/pb_migrations
target: /app/pb_migrations
- type: bind
source: ./admin/pb_hooks
target: /app/pb_hooks
- type: bind
source: ./admin/pb_data
target: /app/pb_data
stdin_open: true
tty: true
fe:
depends_on:
- be
image: starters-fe
build:
context: ./
dockerfile: ./webapp/Dockerfile
environment:
- PUBLIC_POCKETBASE_URL=http://127.0.0.1:8090/
- PB_ADMIN_PASS=adminadmin
- PB_TYPEGEN_URL=http://127.0.0.1:8090
- PB_TYPEGEN_PASSWORD=adminadmin
volumes:
- type: bind
source: ./admin/pb_data
target: /admin/pb_data
network_mode: "host"
healthcheck:
test: wget -nv -t1 --spider 'http://localhost:4173/' || exit 1
interval: 20s
retries: 6
start_period: 60s
timeout: 60s