-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (53 loc) · 1.63 KB
/
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
45
46
47
48
49
50
51
52
53
version: '3'
services:
graphql_redis:
container_name: reactjstampabay_graphql_redis
restart: always
image: "redis"
ports:
- "64000:6379"
graphql_postgres:
container_name: reactjstampabay_graphql_postgres
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
- POSTGRES_DB=graphql
image: "mdillon/postgis"
ports:
- "64001:5432"
graphql:
container_name: reactjstampabay_graphql
build: .
depends_on:
- graphql_postgres
- graphql_redis
links:
- graphql_postgres
- graphql_redis
ports:
- 64002:9000 # Web API
- 64003:9001 # WebSockets
- 64004:5858 # Debug port for Node
- 64005:3000 # React SPA
volumes:
- ./server:/graphql/server
- ./client/public:/graphql/client/public
- ./client/src:/graphql/client/src
- ./client/build:/graphql/client/build
- ./build:/graphql/build
- ./package.json:/graphql/package.json
- ./yarn.lock:/graphql/yarn.lock
- ./client/package.json:/graphql/client/package.json
- ./client/yarn.lock:/graphql/client/yarn.lock
environment:
REACT_APP_API_ROOT: http://localhost:64002/api
REACT_APP_WS_ROOT: ws://localhost:64003/graphql
REACT_APP_REDUX_LOGGING_ENABLED: "true"
API_SECRET: shhhh
DATABASE_URL: postgres://postgres:password@graphql_postgres:5432/graphql
REDIS_URL: redis://graphql_redis:6379
REDIS_USER_SESSIONS_DB: 1
RECREATE_SCHEMA: "true"
command: ["./wait-for-it.sh", "graphql_postgres:5432", "--", "npm", "run", "develop:docker"]
restart: always