-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
50 lines (47 loc) · 1.14 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
services:
postgres:
image: mpugach/postgres_ua:9.5
ports:
- 5432:5432
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
POSTGRES_DB: va_db
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
redis:
image: redis:3.2.12-alpine
volumes:
- redis-data:/data
ports:
- 6379:6379
command: redis-server --appendonly yes
app:
build:
context: "."
dockerfile: docker/akadem_students/Dockerfile
target: development
ports:
- 3000:3000
volumes:
- .:/home/app/students_crm
- assets-javascript-generated:/home/app/students_crm/app/assets/javascripts/generated
- bundle:/usr/local/bundle
- client-node-modules:/home/app/students_crm/client/node_modules
- node-modules:/home/app/students_crm/node_modules
depends_on:
- redis
- postgres
env_file:
- .env
environment:
REDIS_URL: redis
RAILS_ENV: development
entrypoint: /home/app/students_crm/bin/start_dev.sh
volumes:
assets-javascript-generated:
bundle:
client-node-modules:
node-modules:
postgres-data:
redis-data: