-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.production.yml
97 lines (90 loc) · 2.13 KB
/
docker-compose.production.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
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
version: "3"
services:
postgres:
image: postgres
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: production
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
landing:
image: registry.trustedlife.app/full-stack-starter-landing
command: yarn start
build:
context: ./landing
dockerfile: Production.Dockerfile
ports:
- "80:3000"
environment:
NODE_ENV: production
GATEWAY_HOST: gateway
GATEWAY_PORT: 8000
PORT: 3000
volumes:
- ./landing:/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: Production.Dockerfile
command: yarn start
ports:
- "8000:8000"
- "3133:3133"
environment:
NODE_ENV: production
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