File tree 1 file changed +31
-1
lines changed
1 file changed +31
-1
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ Pastebins are a type of online content storage service where users can store pla
40
40
- [ Documentation] ( #documentation )
41
41
- [ Self-hosting] ( #self-hosting )
42
42
- [ Using Docker] ( #using-docker )
43
+ - [ Docker Compose] ( #docker-compose )
43
44
- [ Manually] ( #manually )
44
45
- [ Environment Variables] ( #environment-variables )
45
46
- [ Database Connection URI] ( #database-connection-uri )
@@ -60,7 +61,36 @@ Pastebins are a type of online content storage service where users can store pla
60
61
``` sh
61
62
# Pull and run docker image on port 80
62
63
$ sudo docker pull spacebinorg/spirit
63
- $ sudo docker run -d -p 80:9000 spacebinorg/spirit
64
+ $ sudo docker run -d -e SPIRIT_CONNECTION_URI=" sqlite://database.sqlite" -p 80:9000 spacebinorg/spirit
65
+ ```
66
+
67
+ #### Docker Compose
68
+
69
+ Use the following config file to host Spacebin via Docker Compose:
70
+
71
+ ``` yml
72
+ services :
73
+ spacebin :
74
+ image : spacebinorg/spirit:latest
75
+ restart : always
76
+ environment :
77
+ - SPIRIT_CONNECTION_URI=postgres://spacebin:password@postgres:5432/spacebin?sslmode=disable
78
+ ports :
79
+ - 9000:9000
80
+ depends_on :
81
+ - postgres
82
+ postgres :
83
+ image : postgres:16.3-alpine
84
+ restart : always
85
+ environment :
86
+ - POSTGRES_USER=spacebin
87
+ - POSTGRES_PASSWORD=password
88
+ - POSTGRES_DB=spacebin
89
+ volumes :
90
+ - postgres:/var/lib/postgresql/data
91
+
92
+ volumes :
93
+ postgres :
64
94
` ` `
65
95
66
96
#### Manually
You can’t perform that action at this time.
0 commit comments