-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
85 lines (80 loc) · 2.26 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
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
version: '3'
services:
gateway:
container_name: gcp-gateway
build: .
working_dir: /gateway
volumes:
- ./gateway:/gateway
- ./@types:/@types
command: sh -c "npm run watch"
environment:
PORT: 7000
NODE_ENV: development
COOKIE_SECRET: cookie-secret
COOKIE_DOMAIN: localhost
CORS_DOMAIN: http://localhost:3000
EMAIL_SERVICE_URI: http://service-email:3000
FILES_SERVICE_URI: http://service-files:3000
USERS_SERVICE_URI: http://service-users:3000
ports:
- '7000:7000'
- '9229:9229'
service-email:
container_name: gcp-service-email
build: .
working_dir: /server
volumes:
- ./server:/server
- ./@types:/@types
command: sh -c "npm run watch --workspace=service-email"
environment:
PORT: 3000
NODE_ENV: development
EMAIL_API_KEY: xxxx # SendGrid API key - please use Your own :)
EMAIL_FROM: [email protected] # Email address from which emails will be sent - please use Your own :)
EMAIL_NAME: Application
CORS_DOMAIN: http://localhost:3000
FILES_SERVICE_URI: http://service-files:3000
service-files:
container_name: gcp-service-files
build: .
working_dir: /server
volumes:
- ./server:/server
- ./@types:/@types
command: sh -c "npm run watch --workspace=service-files"
environment:
PORT: 3000
NODE_ENV: development
BUCKET_NAME: bucket-name
POSTGRES: postgresql://postgres:12345@/files?host=db-files
db-files:
container_name: gcp-db-files
image: postgres:14.1
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: 12345
POSTGRES_DB: files
service-users:
container_name: gcp-service-users
build: .
depends_on:
- db-users
working_dir: /server
volumes:
- ./server:/server
- ./@types:/@types
command: sh -c "npm run watch --workspace=service-users"
environment:
PORT: 3000
NODE_ENV: development
POSTGRES: postgresql://postgres:12345@/users?host=db-users
EMAIL_SERVICE_URI: http://service-email:3000
db-users:
container_name: gcp-db-users
image: postgres:14.1
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: 12345
POSTGRES_DB: users