-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (49 loc) · 1.08 KB
/
docker-compose.yml
File metadata and controls
53 lines (49 loc) · 1.08 KB
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
version: "3"
services:
init:
restart: "no"
build: '.'
command: node /home/node/app/dist/migrate.js
ports:
- "3001:3000"
depends_on:
- postgres
- redis
environment:
- NODE_ENV=development
- LOOPBACK_CONSOLE=true
- NO_SLACK_REPORT=true
- SEED_DATA=1
- TEST_DATA=1
- POSTGRES_HOST=postgres
- REDIS_HOST=redis
api:
restart: always
build: '.'
depends_on:
- postgres
- redis
- init
ports:
- "3000:3000"
environment:
- NODE_ENV=development
- LOOPBACK_CONSOLE=true
- NO_SLACK_REPORT=true
- POSTGRES_HOST=postgres
- REDIS_HOST=redis
postgres:
restart: always
image: postgres:9.6
command: postgres -c config_file=/etc/postgresql.conf
environment:
- POSTGRES_PASSWORD=test1234
volumes:
- postgres:/var/lib/postgresql/data
- ./local/postgresql.conf:/etc/postgresql.conf
- ./local/schema.sql:/docker-entrypoint-initdb.d/1-schema.sql
redis:
restart: always
image: redis:latest
volumes:
postgres: