-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
89 lines (81 loc) · 2.01 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
78
79
80
81
82
83
84
85
86
87
88
89
services:
postgres:
image: postgres:16
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5434:5432"
environment:
POSTGRES_USER: fhirboard_backend
POSTGRES_PASSWORD: fhirboard_backend
redis:
image: redis:7
volumes:
- redis_data:/data
app:
build:
context: .
dockerfile: docker/Dockerfile.development
depends_on:
- postgres
- redis
ports:
- "3000:3000"
volumes:
- .:/rails
- gem_cache:/rails/vendor/bundle
- /rails/.bun
- ./lib/fhir-export:/app/fhir-export
env_file: .env
environment:
- RAILS_ENV=development
stdin_open: true
tty: true
tmpfs:
- /rails/tmp/pids:mode=770,size=1k,uid=1000,gid=1000
command: >
bash -c "bundle install && bundle exec rails db:prepare && bundle exec foreman start -f Procfile.dev -p 3000"
develop:
watch:
- action: rebuild
path: .
superset:
build:
context: .
dockerfile: superset/Dockerfile
volumes:
- ./lib/fhir-export:/app/fhir-export
environment:
- ADMIN_USERNAME=admin
- ADMIN_EMAIL=admin@superset.com
- ADMIN_PASSWORD=admin
- SUPERSET_SECRET_KEY=b81a1eaee8a19f5fcff95ab3562cef4f1fc3e
ports:
- '8088:8088'
# sidekiq:
# build:
# context: .
# dockerfile: docker/Dockerfile.development
# depends_on:
# - app
# - postgres
# - redis
# volumes:
# - .:/rails
# - gem_cache:/rails/vendor/bundle
# - ./lib/fhir-export:/app/fhir-export
# env_file: .env
# tmpfs:
# - /rails/tmp/pids:mode=770,size=1k,uid=1000,gid=1000
# command: >
# bash -c "curl -s --retry 999 --retry-connrefused --retry-delay 5 -o /dev/null http://app:3000 &&
# bundle install &&
# bundle exec sidekiq"
# mailcatcher:
# image: schickling/mailcatcher
# ports:
# - "1080:1080"
volumes:
postgres_data:
redis_data:
gem_cache: