+1
-1
Dockerfile
+1
-1
Dockerfile
···
35
35
# git clone --depth=1 https://tangled.org/emmeline.girlkisser.top/beep .
36
36
mkdir -p ~/.vmodules/emmathemartian/maple
37
37
git clone --depth=1 https://github.com/emmathemartian/maple ~/.vmodules/emmathemartian/maple
38
-
v -prod .
38
+
v . # compiling with -prod causes ORM errors.
39
39
EOF
40
40
41
41
STOPSIGNAL SIGINT
+9
-11
compose.yml
+9
-11
compose.yml
···
1
1
volumes:
2
2
beep-data:
3
3
4
-
# networks:
5
-
# common: {}
6
-
7
4
services:
8
5
beep-database:
9
6
image: postgres:17
10
7
container_name: beep-database
11
-
# ports:
12
-
# - 127.0.0.1:5432:5432
13
8
ports:
14
-
- 5432:5432
9
+
- 127.0.0.1:5432:5432
15
10
environment:
16
11
- POSTGRES_DB=beep
17
12
- POSTGRES_USER=beep
···
19
14
volumes:
20
15
- beep-data:/var/lib/postgresql/data
21
16
restart: on-failure:3
22
-
# networks:
23
-
# - common
17
+
healthcheck:
18
+
test: ["CMD", "pg_isready", "-d", "postgresql://localhost:5432", "-U", "beep"]
19
+
interval: 30s
20
+
timeout: 10s
21
+
retries: 5
24
22
25
23
beep:
26
24
build: .
27
25
container_name: beep
28
26
depends_on:
29
-
- beep-database
27
+
beep-database:
28
+
condition: service_healthy
29
+
restart: true
30
30
ports:
31
31
- 8008:8008
32
32
volumes:
···
34
34
source: ${PWD}/config.real.maple
35
35
target: /beep/config.real.maple
36
36
restart: on-failure:3
37
-
# networks:
38
-
# - common
+5
-1
readme
+5
-1
readme
···
13
13
hosting
14
14
-------
15
15
16
+
[WARNING]
17
+
Do not compile with -prod. It causes a strange ORM error
18
+
that results in invalid queries being sent to the database.
19
+
16
20
$ git clone https://tangled.org/emmeline.girlkisser.top/beep
17
21
$ cd beep
18
22
$ cp config.maple config.real.maple
···
35
39
Without Docker:
36
40
(assumes you already have a database somewhere)
37
41
$ v install EmmaTheMartian.Maple
38
-
$ v -prod .
42
+
$ v .
39
43
$ ./beep config.real.maple
40
44
41
45
If `v install ...` fails then you can install Maple