-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
59 lines (54 loc) · 1.37 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
version: '3.8'
services:
postgres:
image: postgres:12-alpine
environment:
- POSTGRES_PASSWORD=password
- POSTGRES_DB=rails-multi-db
expose:
- "5432"
volumes:
- "postgres_data:/var/lib/postgresql/data"
mssql-server:
image: mcr.microsoft.com/mssql/server:2017-CU8-ubuntu
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=yourStrong(!)Password
expose:
- "1433"
redis:
image: redis:6.0.7-alpine
expose:
- "6379"
app:
build:
context: .
dockerfile: Dockerfile.dev
command: bin/rails s -b 0.0.0.0
ports:
- "3000:3000"
depends_on:
- postgres
- redis
environment:
- DEV_PRIMARY_DATABASE_URL=postgres://postgres:password@postgres:5432/rails-multi-db
- DEV_LEGACY_DATABASE_URL=sqlserver://sa:yourStrong(!)Password@mssql-server:1433/rails-multi-db
- REDIS_URL=redis://redis:6379
volumes:
- .:/app
sidekiq:
build:
context: .
dockerfile: Dockerfile.dev
command: bundle exec sidekiq
depends_on:
- postgres
- redis
environment:
- DEV_PRIMARY_DATABASE_URL=postgres://postgres:password@postgres:5432/rails-multi-db
- DEV_LEGACY_DATABASE_URL=sqlserver://sa:yourStrong(!)Password@mssql-server:1433/rails-multi-db
- REDIS_URL=redis://redis:6379
volumes:
- .:/app
volumes:
postgres_data: