-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
38 lines (33 loc) · 1 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
version: '3.2'
services:
ruby:
build:
context: ./.docker/
dockerfile: ruby.dockerfile
image: 'nicofreeman:private-cryptoproject-ruby'
env_file: [./.config/environments/.env.app]
volumes:
- api-gems:/usr/local/bundle
- ./app:/usr/src/app
ports: ['4000:4000']
command: bundle exec rerun --background "rackup --host 0.0.0.0 --port 4000 config.ru"
redis:
command: redis-server --port 6379
image: redis:3.2.4-alpine
volumes: ['redis_data:/var/lib/redis']
postgres:
env_file: [./.config/environments/.env.postgres]
image: postgres:9.6.1-alpine
volumes: ['pg_data:/var/lib/postgresql/data']
ungit:
command: ungit --no-launchBrowser --forcedLaunchPath=/var/www
image: 'nicofreeman/private:ungit'
ports: ["8400:8448"]
volumes:
- .:/var/www/
- /etc/ssh/ssh_config:/etc/ssh/ssh_config
- /home/deployer/.ssh:/home/node/.ssh
volumes:
api-gems: {driver: local}
redis_data: {driver: local}
pg_data: {driver: local}