Nicolas Giard
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
2 deletions
-
dev/examples/docker-compose.yml
|
@ -1,13 +1,15 @@ |
|
|
version: "3" |
|
|
version: "3" |
|
|
services: |
|
|
services: |
|
|
|
|
|
|
|
|
db: |
|
|
db: |
|
|
image: postgres:9-alpine |
|
|
|
|
|
|
|
|
image: postgres:11-alpine |
|
|
environment: |
|
|
environment: |
|
|
POSTGRES_DB: wiki |
|
|
POSTGRES_DB: wiki |
|
|
POSTGRES_PASSWORD: wikijsrocks |
|
|
POSTGRES_PASSWORD: wikijsrocks |
|
|
POSTGRES_USER: wikijs |
|
|
POSTGRES_USER: wikijs |
|
|
logging: |
|
|
logging: |
|
|
driver: "none" |
|
|
driver: "none" |
|
|
|
|
|
restart: unless-stopped |
|
|
volumes: |
|
|
volumes: |
|
|
- db-data:/var/lib/postgresql/data |
|
|
- db-data:/var/lib/postgresql/data |
|
|
|
|
|
|
|
@ -22,8 +24,9 @@ services: |
|
|
DB_USER: wikijs |
|
|
DB_USER: wikijs |
|
|
DB_PASS: wikijsrocks |
|
|
DB_PASS: wikijsrocks |
|
|
DB_NAME: wiki |
|
|
DB_NAME: wiki |
|
|
|
|
|
restart: unless-stopped |
|
|
ports: |
|
|
ports: |
|
|
- "3000:3000" # <-- replace with "80:3000" to listen on port 80 instead |
|
|
|
|
|
|
|
|
- "80:3000" |
|
|
|
|
|
|
|
|
volumes: |
|
|
volumes: |
|
|
db-data: |
|
|
db-data: |