-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
128 lines (127 loc) · 3.32 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
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
version: "3"
services:
app:
image: oscar-web_app
build: .
container_name: app
environment:
- DATABASE_NAME=oscar_development
- DATABASE_NAME_TEST=oscar_test
- DATABASE_USER=oscar
- DATABASE_PASSWORD=123456789
- DATABASE_HOST=db
- HISTORY_DATABASE_NAME=oscar_history_development
- MHO_HISTORY_DATABASE_NAME=mothersheart_history_development
- HISTORY_DATABASE_NAME_TEST=oscar_history_test
- HISTORY_DATABASE_HOST=mongo
- OSCAR_TEAM_PASSWORD=123456789
- POWER_BI_GROUP=power_bi_group
- READ_ONLY_DATABASE_USER=powerbi_dashboard_user
- READ_ONLY_DATABASE_PASSWORD=123456789
- READ_ONLY_MTP_DATABASE_USER=mtp_user
- READ_ONLY_MTP_DATABASE_PASSWORD=123456789
- WEBPACKER_DEV_SERVER_HOST=webpack
- REDIS_URL=redis://redis:6379/1
- STC_DONOR_NAME=
- FD_DONOR_NAME=
- SIDEKIQ_USER=admin
- SIDEKIQ_PASSWORD=12345
volumes:
- .:/app
ports:
- "3000:3000"
depends_on:
- db
- mongo
- redis
- sidekiq
stdin_open: true
tty: true
webpack:
image: oscar-web_app
container_name: webpack
depends_on:
- app
volumes:
- .:/app
ports:
- "3035:3035"
entrypoint: bash -c "rm -rf /app/public/packs; /app/bin/webpack-dev-server"
environment:
- WEBPACKER_DEV_SERVER_HOST=0.0.0.0
db:
image: postgres:12.3
container_name: db
environment:
- POSTGRES_DB=oscar_development
- POSTGRES_USER=oscar
- POSTGRES_PASSWORD=123456789
volumes:
- ./tmp/db:/var/lib/postgresql/data
ports:
- 5432:5432
pgadmin:
image: dpage/pgadmin4:latest
container_name: pgadmin
restart: always
depends_on:
- db
ports:
- 5050:80
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: 123456789
volumes:
- ./pgadmin-servers.json:/pgadmin4/servers.json:ro
mongo:
image: mongo:4.2.10
container_name: mongo
environment:
- MONGO_INITDB_DATABASE=oscar_history_development
- MONGO_INITDB_ROOT_USERNAME=mongo
- MONGO_INITDB_ROOT_PASSWORD=123456789
volumes:
- ./init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
- ./tmp/mongo:/data/db
ports:
- "27017-27019:27017-27019"
mongo-express:
image: mongo-express:0.49
container_name: mongo-express
restart: always
depends_on:
- mongo
links:
- mongo:mongo
environment:
- ME_CONFIG_MONGODB_SERVER=mongo
- ME_CONFIG_OPTIONS_EDITORTHEME=ambiance
- ME_CONFIG_MONGODB_ADMINUSERNAME=mongo
- ME_CONFIG_MONGODB_ADMINPASSWORD=123456789
ports:
- "8081:8081"
redis:
image: "redis:5.0.13"
container_name: "redis"
volumes:
- ./tmp/db:/var/lib/redis/data
sidekiq:
container_name: "sidekiq"
build: .
command: bundle exec sidekiq
volumes:
- .:/app
depends_on:
- db
- redis
environment:
- RAILS_ENV=development
- DATABASE_NAME=oscar_development
- DATABASE_USER=oscar
- DATABASE_PASSWORD=123456789
- DATABASE_HOST=db
- REDIS_URL=redis://redis:6379/1