-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose-local.yml
67 lines (62 loc) · 1.65 KB
/
docker-compose-local.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
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
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