-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (38 loc) · 910 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (38 loc) · 910 Bytes
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
version: '2'
services:
app:
build: .
image: realworld-amber-framework
command: amber watch
environment:
DATABASE_URL: postgres://admin:password@db:5432/realworld_amber_framework_development
ports:
- 3000:3000
links:
- db
volumes:
- .:/app
- nodes:/app/node_modules
- shards:/app/lib
migrate:
build: .
image: realworld-amber-framework
command: bash -c 'while ! nc -q 1 db 5432 </dev/null; do sleep 1; done && amber db migrate seed'
environment:
DATABASE_URL: postgres://admin:password@db:5432/realworld_amber_framework_development
volumes:
- .:/app
links:
- db
db:
image: postgres
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: password
POSTGRES_DB: realworld_amber_framework_development
volumes:
- db:/var/lib/postgres/data
volumes:
db:
nodes:
shards: