-
Notifications
You must be signed in to change notification settings - Fork 19
/
docker-compose.yml
44 lines (40 loc) · 1008 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: .
links:
- db:db
- redis:redis
- memcache:memcache
# This mounts the current Buildkite build into /app, ensuring any
# generated files and artifacts are available to the buildkite-agent on
# the host machine (outside of the Docker Container)
volumes:
- "./:/app"
env_file:
- ".env-sample"
environment:
PGHOST: db
PGUSER: postgres
REDIS_URL: redis://redis
MEMCACHE_SERVERS: memcache
# CI envs
CI:
RAILS_ENV:
# CI envs For Knapsack
BUILDKITE_PARALLEL_JOB:
BUILDKITE_PARALLEL_JOB_COUNT:
BUILDKITE_COMMIT:
BUILDKITE_BRANCH:
BUILDKITE_REPO:
BUILDKITE_BUILD_ID:
BUILDKITE_BUILD_NUMBER:
ports:
- "5000:5000"
entrypoint: wait-for-it.sh db:5432 -s -- wait-for-it.sh redis:6379 -s -- wait-for-it.sh memcache:11211 -s --
db:
image: postgres
redis:
image: redis
memcache:
image: tutum/memcached