-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
57 lines (57 loc) · 1.66 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
version: '2'
services:
mongo:
image: 'mongo:3.2'
container_name: 'infolis-mongo'
volumes:
- '/etc/localtime:/etc/localtime:ro'
- './data/mongodb:/data/db'
- './backup:/backup'
# for development
ports:
- '27018:27017'
restart: always
infolis-web:
build: 'repo/infolis-web'
image: 'infolis/infolis-web'
container_name: 'infolis-web-app'
depends_on:
- 'mongo'
- 'infolink'
environment:
MONGO_ADDR: 'infolis-mongo'
MONGO_PORT: '27017'
INFOLINK_ADDR: 'infolink'
INFOLINK_PORT: '8080'
restart: always
ports:
- '3000:3000'
volumes:
- '/etc/localtime:/etc/localtime:ro'
- './config/infolis-web.coffee:/app/config.production.coffee'
- './data/logs:/app/logs'
# for development
- './repo/infolis-web/node_modules:/app/node_modules'
- './repo/infolis-web/src:/app/src'
- './repo/infolis-web/data/infolis.tson:/app/data/infolis.tson'
- './repo/infolis-web/public:/app/public'
- './repo/infolis-web/views:/app/views'
- './repo/infolis-web/src-client:/app/src-client'
command: 'npm run start-dev'
infolink:
build: 'repo/infolink'
image: 'infolis/infolink'
container_name: 'infolink-app'
tmpfs:
- '/tmp/infolis:size=100G'
volumes:
- '/etc/localtime:/etc/localtime:ro'
- './config/infolink.properties:/etc/infolis-config.properties'
- './data/uploads:/infolis-files'
# infolis-github:
# build: 'repo/infolis.github.io'
# container_name: 'infolis-github-app'
# ports:
# - '4000:4000'
# volumes:
# - './config/infolis-github.yml:/site/_config-dev.yml'