-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.app.yml
97 lines (93 loc) · 2.66 KB
/
docker-compose.app.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
97
version: "3"
services:
client:
container_name: rusve-client
working_dir: /client
build:
context: ./client
target: dev
args:
ENV: development
COOKIE_DOMAIN: localhost
PUBLIC_AUTH_URL: http://localhost:8090
USERS_URI: service-users
UTILS_URI: service-utils
NOTES_URI: service-notes
UPSEND_KEY: ${UPSEND_KEY}
JWT_SECRET: ${JWT_SECRET}
volumes:
- ./client/src:/client/src
- ./client/.svelte-kit:/client/.svelte-kit
ports:
- 3000:3000
service-auth:
container_name: rusve-service-auth
working_dir: /app
build:
context: ./service-auth
target: dev
volumes:
- ./service-auth/src:/app/src
environment:
PORT: 443
RUST_LOG: info
DATABASE_URL: postgresql://?host=db-users&user=postgres&password=12345&dbname=users
CLIENT_URL: http://localhost:3000
AUTH_URL: http://localhost:8090
USERS_URL: http://service-users:443
GOOGLE_CLIENT_ID: ${GOOGLE_CLIENT_ID}
GOOGLE_CLIENT_SECRET: ${GOOGLE_CLIENT_SECRET}
GITHUB_CLIENT_ID: ${GITHUB_CLIENT_ID}
GITHUB_CLIENT_SECRET: ${GITHUB_CLIENT_SECRET}
JWT_SECRET: ${JWT_SECRET}
ports:
- 8090:443
service-users:
container_name: rusve-service-users
working_dir: /app
build:
context: ./service-users
target: dev
volumes:
- ./service-users/src:/app/src
environment:
PORT: 443
RUST_LOG: info
DATABASE_URL: postgresql://?host=db-users&user=postgres&password=12345&dbname=users
JWT_SECRET: ${JWT_SECRET}
CLIENT_URL: http://localhost:3000
STRIPE_API_KEY: ${STRIPE_API_KEY}
STRIPE_PRICE_ID: ${STRIPE_PRICE_ID}
service-notes:
container_name: rusve-service-notes
working_dir: /app
build:
context: ./service-notes
target: dev
volumes:
- ./service-notes/src:/app/src
environment:
PORT: 443
RUST_LOG: info
DATABASE_URL: postgresql://?host=db-notes&user=postgres&password=12345&dbname=notes
USERS_URL: http://service-users:443
JWT_SECRET: ${JWT_SECRET}
service-utils:
container_name: rusve-service-utils
working_dir: /app
build:
context: ./service-utils
target: dev
volumes:
- ./service-utils/src:/app/src
- ./files:/app/files
environment:
PORT: 443
RUST_LOG: info
DATABASE_URL: postgresql://?host=db-utils&user=postgres&password=12345&dbname=users
SENDGRID_API_KEY: ${SENDGRID_API_KEY}
S3_ACCESS_KEY: ${S3_ACCESS_KEY}
S3_SECRET_KEY: ${S3_SECRET_KEY}
S3_ENDPOINT: ${S3_ENDPOINT}
S3_BUCKET_NAME: rusve
JWT_SECRET: ${JWT_SECRET}