File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 2
2
title : Docker
3
3
description : Getting started with the Docker image
4
4
published : true
5
- date : 2019-11-21T22:20:26.701Z
5
+ date : 2019-12-04T20:54:09.284Z
6
6
tags : setup, docker
7
7
---
8
8
@@ -82,20 +82,21 @@ This is however not a secure way to run containers. Make sure you understand the
82
82
83
83
# Using Docker Compose
84
84
85
- Here's an example of a Docker Compose file, using PostgreSQL:
85
+ Here's a full example of a Docker Compose file for Wiki.js , using PostgreSQL, listening on port 80 :
86
86
87
87
``` yaml
88
88
version : " 3"
89
89
services :
90
90
91
91
db :
92
- image : postgres:9 -alpine
92
+ image : postgres:11 -alpine
93
93
environment :
94
94
POSTGRES_DB : wiki
95
95
POSTGRES_PASSWORD : wikijsrocks
96
96
POSTGRES_USER : wikijs
97
97
logging :
98
98
driver : " none"
99
+ restart : unless-stopped
99
100
volumes :
100
101
- db-data:/var/lib/postgresql/data
101
102
@@ -110,8 +111,9 @@ services:
110
111
DB_USER : wikijs
111
112
DB_PASS : wikijsrocks
112
113
DB_NAME : wiki
114
+ restart : unless-stopped
113
115
ports :
114
- - " 3000:3000 " # <-- here you can replace with " 80:3000" to listen on port 80 instead, as an example
116
+ - " 80:3000"
115
117
116
118
volumes :
117
119
db-data :
You can’t perform that action at this time.
0 commit comments