-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.mac.yml
139 lines (122 loc) · 3.28 KB
/
docker-compose.mac.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
version: '2'
services:
# Rails application container
dec_webserver:
build: .
container_name: decidim_webserver
environment:
RAILS_ENV: development
ports:
- '3000:3000'
volumes:
- "decidim-rails-docker-sync:/workspace:nocopy"
# volumes_from:
# - box
depends_on:
- decpg
# - redis
# - elasticsearch
# - sidekiq
stdin_open: true
tty: true
command: bash -c "rm -f tmp/pids/server.pid && REDIS_URL='redis://redis:6379/0' rails server -b '0.0.0.0'"
# if you need to fix deps
# command: bash -c "bundle install && yarn install --check-files && rm -f tmp/pids/server.pid && REDIS_URL='redis://redis:6379/0' rails server -b '0.0.0.0'"
# box:
# image: busybox
# volumes:
# - /box
decpg:
image: postgres
volumes:
#- "decidim-pg-data-docker-sync:/var/lib/postgresql/data:nocopy"
- "./docker/data/postgres:/var/lib/postgresql/data"
ports:
- 5432:5432
environment:
POSTGRES_PASSWORD: postgres
# dec_pgadmin:
# image: dpage/pgadmin4
# environment:
# PGADMIN_DEFAULT_PASSWORD: postgres
# PGADMIN_DEFAULT_EMAIL: [email protected]
# ports:
# - '7777:80'
# Db container
# db:
# image: mysql
# command: --default-authentication-plugin=mysql_native_password
# restart: always
# container_name: sprtincloud_db
# environment:
# MYSQL_ROOT_PASSWORD: root
# volumes:
# - "./docker/data/mysql:/var/lib/mysql"
# ports:
# - "3306:3306"
# Sidekiq container (rails application with custom command)
# sidekiq:
# build: .
# container_name: sprtincloud_sidekiq
# depends_on:
# - db
# - redis
# command: bash -c "bundle install && REDIS_URL='redis://redis:6379/0' bundle exec sidekiq "
# environment:
# RAILS_ENV: development
# volumes:
# - "sport-in-cloud-docker-sync:/workspace:nocopy"
# Redis db
dec_redis:
image: redis:2.8.7
ports:
- '6379:6379'
volumes:
- ./docker/data/redis:/var/lib/redis/data
volumes:
decidim-rails-docker-sync:
external:
name: "decidim-rails-docker-sync"
# decidim-pg-data-docker-sync:
# external:
# name: "decidim-pg-data-docker-sync"
# Elasticsearch container
# elasticsearch:
# image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.6.0
# volumes:
# - es-data:/usr/share/elasticsearch/data
# Kibana, elasticsearch web interface
# kibana:
# image: docker.elastic.co/kibana/kibana:6.6.0
# ports:
# - 5601:5601
# depends_on:
# - elasticsearch
# Test container, used to run rspec
# rspec:
# build: .
# command: bash -c "rake db:migrate && rspec"
# environment:
# RAILS_ENV: "${RSPEC_ENV}"
# ON_DOCKER: 1
# depends_on:
# - test-db
# - test-elasticsearch
# volumes:
# - ".:/workspace"
# Elastic search empty container used for rspec tests
# test-elasticsearch:
# image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.6.0
# test Db container for rspec
# test-db:
# image: postgres:9.3.24
# restart: always
# environment:
# POSTGRES_DB: zpc_test
# volumes:
# postgres-data:
# driver: local
# es-data:
# driver: local
# redis-data:
# driver: local