-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (62 loc) · 1.52 KB
/
docker-compose.yml
File metadata and controls
62 lines (62 loc) · 1.52 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
version: '3'
services:
# backend:
# build: ./api
# volumes:
# - ./api:/api
# ports:
# - "4433:4433"
# stdin_open: true
# tty: true
# environment:
# - MONGO_URL=mongodb://mongo_user:this_is_a_safe_password@0.0.0.0:27017/
# - FLASK_APP=api/endpoints.py
# - FLASK_ENV=development
# frontend:
# build: ./frontend
# volumes:
# - ./frontend:/app/frontend
# # One-way volume to use node_modules from inside image
# - /app/frontend/node_modules
# ports:
# - "3001:3001"
# environment:
# - NODE_ENV=development
# - PORT=3001
# depends_on:
# - backend
# command: yarn start
mongo:
image: mongo
restart: always
ports:
- "27017:27017"
environment:
MONGO_INITDB_ROOT_USERNAME: mongo_user
MONGO_INITDB_ROOT_PASSWORD: this_is_a_safe_password
database:
image: postgres:11.6-alpine
environment:
- POSTGRES_USER=codimd
- POSTGRES_PASSWORD=change_password
- POSTGRES_DB=codimd
volumes:
- "database-data:/var/lib/postgresql/data"
restart: always
codimd:
image: nabo.codimd.dev/hackmdio/hackmd:2.2.0
environment:
- CMD_DB_URL=postgres://codimd:change_password@database/codimd
- CMD_USECDN=false
- CMD_ALLOW_ANONYMOUS=true
- CMD_ALLOW_FREEURL=true
depends_on:
- database
ports:
- "3000:3000"
volumes:
- upload-data:/home/hackmd/app/public/uploads
restart: always
volumes:
database-data: {}
upload-data: {}