forked from abdojulari/transcript-editor
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.dev.yml
77 lines (72 loc) · 1.43 KB
/
docker-compose.dev.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
version: '3.8'
services:
postgres:
image: postgres:latest
ports:
- "5432:5432"
environment:
POSTGRES_DB: amplify-development
POSTGRES_USER: postgres
POSTGRES_HOST_AUTH_METHOD: trust
restart: always
volumes:
- amplify_pgdata:/var/lib/postgresql/data
- ../dump:/dump
redis:
image: redis:latest
restart: always
ports:
- "6379:6379"
amplify:
build:
context: .
dockerfile: docker/compose/amplify/Dockerfile.dev
restart: always
ports:
- "9090:3000"
volumes:
- .:/app
depends_on:
- postgres
env_file:
- .env
command: bundle exec rails s -b 0.0.0.0
environment:
DBUSER: postgres
DBHOST: postgres
DBPORT: 5432
amplify-cli:
build:
context: .
dockerfile: docker/compose/amplify-cli/Dockerfile.dev
restart: always
volumes:
- .:/app
depends_on:
- postgres
env_file:
- .env
environment:
DBUSER: postgres
DBHOST: postgres
DBPORT: 5432
sidekiq:
build:
context: .
dockerfile: Dockerfile.dev
restart: always
volumes:
- .:/app
depends_on:
- postgres
- redis
env_file:
- .env
command: bundle exec sidekiq -c 2 -C config/sidekiq.yml
environment:
DBUSER: postgres
DBHOST: postgres
DBPORT: 5432
REDIS_URL: "redis://redis:6379/1"
volumes:
amplify_pgdata: