Skip to content

Commit 65dd4dc

Browse files
AdministratorNGPixel
Administrator
authored andcommitted
docs: update install/docker
1 parent e319464 commit 65dd4dc

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Diff for: install/docker.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Docker
33
description: Getting started with the Docker image
44
published: true
5-
date: 2019-11-21T22:20:26.701Z
5+
date: 2019-12-04T20:54:09.284Z
66
tags: setup, docker
77
---
88

@@ -82,20 +82,21 @@ This is however not a secure way to run containers. Make sure you understand the
8282

8383
# Using Docker Compose
8484

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:
8686

8787
```yaml
8888
version: "3"
8989
services:
9090

9191
db:
92-
image: postgres:9-alpine
92+
image: postgres:11-alpine
9393
environment:
9494
POSTGRES_DB: wiki
9595
POSTGRES_PASSWORD: wikijsrocks
9696
POSTGRES_USER: wikijs
9797
logging:
9898
driver: "none"
99+
restart: unless-stopped
99100
volumes:
100101
- db-data:/var/lib/postgresql/data
101102

@@ -110,8 +111,9 @@ services:
110111
DB_USER: wikijs
111112
DB_PASS: wikijsrocks
112113
DB_NAME: wiki
114+
restart: unless-stopped
113115
ports:
114-
- "3000:3000" # <-- here you can replace with "80:3000" to listen on port 80 instead, as an example
116+
- "80:3000"
115117

116118
volumes:
117119
db-data:

0 commit comments

Comments
 (0)