-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
34 lines (34 loc) · 926 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
version: '2'
services:
postgres:
image: postgres
volumes:
- ./db/contacts.sql:/docker-entrypoint-initdb.d/contacts.sql
- ./db/projects.sql:/docker-entrypoint-initdb.d/projects.sql
ports:
- "5433:5432"
restart: always
environment:
POSTGRES_USER: postgres
redis:
image: redis
server:
depends_on:
- postgres
- redis
image: jsixc/node-yarn-app:7
volumes:
- ./:/home/app
ports:
- "3000:3000"
- "9966:9966"
environment:
DB_URL: "postgres://postgres:pwd@postgres:5432/postgres"
PORT: 3000
API_HOST: "http://localhost:3000/api"
REDIS_URL: "redis://redis:6379"
SESSION_KEY: secret # fake key for development environment
AUTH0_CLIENT_ID: $AUTH0_CLIENT_ID
AUTH0_CLIENT_SECRET: $AUTH0_CLIENT_SECRET
AUTH0_CALLBACK_URL: "http://localhost:9966/callback"
AUTH0_DOMAIN: $AUTH0_DOMAIN