-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose.yml
44 lines (40 loc) · 1018 Bytes
/
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
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
- GITHUB_CLIENT_ID=${GITHUB_CLIENT_ID}
- GITHUB_CLIENT_SECRET=${GITHUB_CLIENT_SECRET}
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=development
- DATABASE_HOST=database.service.ecosystem.internal
- REDIS_URL=redis://redis.service.ecosystem.internal
networks:
- internal
depends_on:
- database.service.ecosystem.internal
- redis.service.ecosystem.internal
database.service.ecosystem.internal:
image: postgres:9.6-alpine
volumes:
- pg_data:/var/lib/postgresql/data
networks:
- internal
environment:
- POSTGRES_PASSWORD=development
redis.service.ecosystem.internal:
image: redis:4.0-alpine
networks:
- internal
volumes:
pg_data:
networks:
internal:
driver: bridge