-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathdocker-compose.yaml
65 lines (58 loc) · 1.12 KB
/
docker-compose.yaml
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
services:
app:
&default
image: nhc:v1
build: .
working_dir: /app/
command: npm run dev
environment:
REDIS_HOST: redis
MEMCACHED_HOST: memcache
WEB_HOST: https://github.com/status
DYNAMO_HOST: http://dynamodb
DATABASE_HOST: postgresql
PYTHON: python3
volumes:
- .:/app
ports:
- 8888:8888
depends_on:
- redis
- memcache
- dynamodb
- postgresql
#the services below is a short hand to use npm in docker context
test:
<<: *default
command: npm run test:coverage
ports: []
lint:
<<: *default
command: npm run lint
ports: []
depends_on: []
format:
<<: *default
command: npm run format
ports: []
depends_on: []
redis:
image: redis
# ports:
# - 6379:6379
memcache:
image: memcached:latest
# ports:
# - 11211:11211
dynamodb:
image: amazon/dynamodb-local
environment:
AWS_ACCESS_KEY_ID: test
# ports:
# - "8000:8000"
postgresql:
image: postgres
environment:
POSTGRES_PASSWORD: root
# ports:
# - 5432:5432