-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
60 lines (55 loc) · 1.34 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
55
56
57
58
59
60
version: '3'
services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "3000:3000"
environment:
- PORT=3000
- PIDFILE=/usr/src/app/tmp/pids/server.pid
- RAILS_ENV=development
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=development
- POSTGRES_HOST=database.service.repos.internal
- REDIS_URL=redis://redis.service.repos.internal
networks:
- internal
depends_on:
- database.service.repos.internal
sidekiq:
build:
context: .
dockerfile: Dockerfile
command: bin/docker-sidekiq
environment:
- PIDFILE=/usr/src/app/tmp/pids/server.pid
- RAILS_ENV=development
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=development
- POSTGRES_HOST=database.service.repos.internal
- REDIS_URL=redis://redis.service.repos.internal
networks:
- internal
depends_on:
- app
- database.service.repos.internal
- redis.service.repos.internal
database.service.repos.internal:
image: postgres:14.1-alpine
volumes:
- pg_data:/var/lib/postgresql/data
networks:
- internal
environment:
- POSTGRES_PASSWORD=development
redis.service.repos.internal:
image: redis:6.2-alpine
networks:
- internal
volumes:
pg_data:
networks:
internal:
driver: bridge