-
Notifications
You must be signed in to change notification settings - Fork 0
/
stack.yaml
57 lines (54 loc) · 2.06 KB
/
stack.yaml
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
version: '3.8'
services:
server:
image: lordvidex/gomoney-central:0.3
secrets:
- gomoney_database_url
environment:
- DATABASE_URL_FILE=/run/secrets/gomoney_database_url
- MIGRATION_DIRECTORY=file:///migrations
deploy:
restart_policy:
condition: on-failure
ports:
- "127.0.0.1:8002:8080"
extra_hosts:
- "host.docker.internal:host-gateway"
telegram:
image: lordvidex/gomoney-telegram:0.3
secrets:
- gomoney_redis_url
- gomoney_bot_token
environment:
- GRPC_SERVER=server:8080
- REDIS_URL_FILE=/run/secrets/gomoney_redis_url
- BOT_TOKEN_FILE=/run/secrets/gomoney_bot_token
depends_on:
- server
extra_hosts:
- "host.docker.internal:host-gateway"
api:
image: lordvidex/gomoney-api:0.3
secrets:
- gomoney_redis_url
- gomoney_symmetric_key
environment:
- GRPC_SERVER=server:8080
- REDIS_URL_FILE=/run/secrets/gomoney_redis_url
- APP_ENV=production
- SYMMETRIC_KEY_FILE=/run/secrets/gomoney_symmetric_key
ports:
- "127.0.0.1:8003:8080"
depends_on:
- server
extra_hosts:
- "host.docker.internal:host-gateway"
secrets:
gomoney_database_url:
external: true
gomoney_redis_url:
external: true
gomoney_symmetric_key:
external: true
gomoney_bot_token:
external: true