-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose-local.yml
More file actions
74 lines (69 loc) · 1.78 KB
/
docker-compose-local.yml
File metadata and controls
74 lines (69 loc) · 1.78 KB
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
version: '3.3'
services:
school-experience:
build: .
command: frontend
ports:
- "3000:3000"
restart: always
healthcheck:
disable: true
environment:
- RAILS_ENV=servertest
- DATABASE_URL=postgis://postgres:secret@postgres/school_experience
- REDIS_URL=redis://redis:6379/1
- SECRET_KEY_BASE=stubbed
- SKIP_FORCE_SSL=true
- WEB_URL=postgis://postgres:secret@postgres/school_experience
depends_on:
- db-tasks
volumes:
- .:/ci_build
sidekiq-jobs:
build: .
command: sidekiq
restart: always
healthcheck:
disable: true
environment:
- RAILS_ENV=servertest
- DATABASE_URL=postgis://postgres:secret@postgres/school_experience
- REDIS_URL=redis://redis:6379/1
- SECRET_KEY_BASE=stubbed
- SKIP_FORCE_SSL=true
- WEB_URL=postgis://postgres:secret@postgres/school_experience
depends_on:
- db-tasks
db-tasks:
build: .
command: database
restart: on-failure
healthcheck:
disable: true
environment:
- RAILS_ENV=test
- DATABASE_URL=postgis://postgres:secret@postgres/school_experience
- REDIS_URL=redis://redis:6379/1
- SECRET_KEY_BASE=stubbed
- SKIP_FORCE_SSL=true
- WEB_URL=postgis://postgres:secret@postgres/school_experience
volumes:
- .:/ci_build
- tmp-volume:/app/tmp
- out-volume:/app/out
depends_on:
- postgres
- redis
postgres:
image: postgis/postgis:13-3.1-alpine
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=secret
- POSTGRES_DB=school_experience
redis:
image: redis:5-alpine
volumes:
tmp-volume:
driver: local
out-volume:
driver: local