-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
54 lines (54 loc) · 1.1 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
version: '3'
services:
web: &web
build: ./
stdin_open: true
tty: true
command: foreman start -f Procfile.dev
environment: &env
DATABASE_URL: postgres://gala:alpine@db:5432/gala
REDIS_URL: redis://redis:6379/1
RAILS_ENV: development
ports:
- 3000:3000
- 3035:3035
depends_on:
- db
- redis
volumes:
- ./:/app/
- /app/node_modules/
- /app/tmp/cache/
worker:
<<: *web
image: gala_web
command: bundle exec sidekiq
environment:
<<: *env
SIDEKIQ_CONCURRENCY: 1
ports: []
db:
image: postgres:13
environment:
POSTGRES_USER: gala
POSTGRES_PASSWORD: alpine
ports:
- 5432:5432
volumes:
- ./db/structure.sql:/docker-entrypoint-initdb.d/structure.sql
- db_data:/var/lib/postgresql/data/
redis:
image: redis:6
ports:
- 6379:6379
# selenium:
# image: seleniarm/standalone-chromium
# shm_size: 4gb
# environment:
# SE_NODE_MAX_SESSIONS: 1
# ports:
# - 4444:4444
# volumes:
# - /dev/shm:/dev/shm
volumes:
db_data: