-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
139 lines (130 loc) · 3.17 KB
/
docker-compose.yml
File metadata and controls
139 lines (130 loc) · 3.17 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
version: "3"
services:
postgres:
image: postgres:11
ports:
- "5432:5432"
environment:
POSTGRES_PASSWORD: password
volumes:
- ./data/postgres:/var/lib/postgresql/data
redis:
image: redis
ports:
- "6379:6379"
sysctls:
net.core.somaxconn: "65535"
# microservice:
# image: registry.trustedlife.app/full-stack-starter-microservice
# build:
# context: ./microservice
# dockerfile: Dockerfile
# command: yarn dev
# environment:
# NODE_ENV: development
# POSTGRES_USER: postgres
# POSTGRES_HOST: postgres
# POSTGRES_DATABASE: postgres
# POSTGRES_PASSWORD: password
# POSTGRES_PORT: 5432
# REDIS_HOST: redis
# REDIS_PORT: 6379
# depends_on:
# - redis
# - postgres
# links:
# - redis
# - postgres
# volumes:
# - ./microservice:/app
# - /app/node_modules
# test-microservice:
# build: ./microservice
# command: yarn test --watchAll
# environment:
# NODE_ENV: test
# volumes:
# - ./microservice:/app
# - /app/node_modules
# landing:
# image: registry.trustedlife.app/full-stack-starter-landing
# build:
# context: ./landing
# dockerfile: Dockerfile
# ports:
# - "3000:3000"
# environment:
# NODE_ENV: development
# GATEWAY_HOST: gateway
# GATEWAY_PORT: 8000
# PORT: 3000
# volumes:
# - ./landing:/app
# - /app/node_modules # protect container node_modules from overwrite
# links:
# - gateway
# test-landing:
# build: ./landing
# command: yarn test --watchAll
# environment:
# NODE_ENV: test
# volumes:
# - ./landing:/app
# - /app/node_modules
webclient:
image: registry.trustedlife.app/full-stack-starter-webclient
build:
context: ./webclient/webclient
dockerfile: Dockerfile
ports:
- "3000:3000"
environment:
NODE_ENV: development
GATEWAY_HOST: gateway
GATEWAY_PORT: 8000
PORT: 3000
volumes:
- ./webclient/webclient:/app
- /app/node_modules # protect container node_modules from overwrite
links:
- gateway
gateway:
image: registry.trustedlife.app/full-stack-starter-gateway
build:
context: ./gateway
dockerfile: Dockerfile
command: yarn dev
ports:
- "8000:8000"
- "3133:3133"
environment:
NODE_ENV: "development"
MIGRATE_ON_BOOTSTRAP: "true"
SEED_ON_BOOTSTRAP: "false"
EXPRESS_PORT: 8000
EXPRESS_SESSION_SECRET: "keyboard cat"
POSTGRES_USER: postgres
POSTGRES_HOST: postgres
POSTGRES_DATABASE: postgres
POSTGRES_PASSWORD: password
POSTGRES_PORT: 5432
REDIS_HOST: redis
REDIS_PORT: 6379
SOCKET_IO_PORT: "3133"
links:
- postgres
- redis
depends_on:
- postgres
- redis
volumes:
- ./gateway:/app
- /app/node_modules # protect container node_modules from overwrite
# test-gateway:
# build: ./gateway
# command: yarn test --watchAll
# environment:
# NODE_ENV: test
# volumes:
# - ./gateway:/app
# - /app/node_modules