-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
63 lines (62 loc) · 1.96 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
53
54
55
56
57
58
59
60
61
62
63
# SPDX-License-Identifier: AGPL-3.0-or-later
# Zenflows is designed to implement the Valueflows vocabulary,
# written and maintained by srfsh <info@dyne.org>.
# Copyright (C) 2021-2023 Dyne.org foundation <foundation@dyne.org>.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
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_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_USER=admin@example.org
- PB_ADMIN_PASS=adminadmin
- PB_TYPEGEN_URL=http://127.0.0.1:8090
- PB_TYPEGEN_EMAIL=admin@example.org
- 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