-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
54 lines (53 loc) · 1.13 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
version: '3'
services:
db:
image: postgres:9.6
restart: always
volumes:
- ./docker/init-db.sh:/docker-entrypoint-initdb.d/init-user-db.sh
- ./docker/postgres:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: dataarc
POSTGRES_USERNAME: dataarc
cron:
build:
context: .
dockerfile: CronDockerfile
hostname: cron
restart: always
volumes:
- ./docker/backups:/backups
- /etc/localtime:/etc/localtime:ro
tty: true
entrypoint: ""
user: root
command: crond -f -d 8
links:
- db:db
- mongo:mongo
environment:
POSTGRES_PASSWORD: dataarc
POSTGRES_USERNAME: dataarc
POSTGRES_HOST: db
mongo:
image: mongo:3.4
restart: always
volumes:
- ./docker/mongo:/data/db
# ports:
# - "27017:27017"
web:
build: .
restart: always
image: dataarc/web
# command: bundle exec rails s -p 3000 -b '0.0.0.0'
volumes:
- .:/app
- ~/.m2:/root/.m2
ports:
- "8280:8280"
links:
- db
- mongo
## docker-compose build --pull
## docker-compose up