-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
39 lines (38 loc) · 978 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Pour éditer la prez dans le bus !
#
# 1. Copier .env.sample vers .env et y changer le mot de passe
# 2. Taper : docker-compose up -d
version: "3"
services:
postgres:
image: postgres:11.5
environment:
- POSTGRES_USER=codimd
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=codimd
volumes:
- "database-data:/var/lib/postgresql/data"
restart: always
codimd:
image: nabo.codimd.dev/hackmdio/hackmd:1.4.0
environment:
- CMD_DB_URL=postgres://codimd:${POSTGRES_PASSWORD}@postgres/codimd
- CMD_USECDN=false
depends_on:
- postgres
ports:
- "1337:3000"
volumes:
- ./uploads:/home/hackmd/app/public/uploads
restart: always
syncer:
build: syncer
image: epflidevfsd/codimd-syncer
environment:
- DB_URL=postgres://codimd:${POSTGRES_PASSWORD}@postgres/codimd
- DEBUG=syncer
volumes:
- ./:/markdown:rw
volumes:
database-data: {}
upload-data: {}