-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
148 lines (136 loc) · 4.07 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
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
140
141
142
143
144
145
146
147
148
version: "3.8"
x-common-args: &common-args
DOCKER_BUILDKIT: 1
CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX: docker.io
x-common-settings: &common-settings
networks: [gramax]
mem_limit: 512m
mem_reservation: 410m
memswap_limit: 512m
cpus: 0.5
services:
api-gateway:
image: nginx:1.24.0-alpine
container_name: gramax-api-gateway
restart: unless-stopped
ports:
- ${GRAMAX_EXTERNAL_HTTP_PORT:-80}:80
volumes:
- ./deploy/conf.d:/etc/nginx/conf.d
networks: [gramax]
web:
build:
dockerfile: ./target/browser/Dockerfile
args:
<<: *common-args
container_name: gramax-web
restart: unless-stopped
depends_on:
- api-gateway
- git-proxy
environment:
- PORT=80
- PRODUCTION=true
ports: [9000:80]
<<: *common-settings
storybook:
build:
dockerfile: ./storybook/Dockerfile
args:
<<: *common-args
container_name: gramax-storybook
restart: unless-stopped
depends_on:
- api-gateway
environment:
- PORT=80
ports: [9001:80]
<<: *common-settings
git-proxy:
build:
dockerfile: ./services/target/git-proxy/Dockerfile
args:
<<: *common-args
container_name: gramax-git-proxy
depends_on: [api-gateway]
environment: [PORT=80]
ports: [9002:80]
<<: *common-settings
diagram-renderer:
build:
dockerfile: ./services/target/diagram-renderer/Dockerfile
args:
<<: *common-args
container_name: gramax-diagram-renderer
restart: unless-stopped
depends_on: [api-gateway]
environment:
- PORT=80
- BASE_URL=/
ports: [9003:80]
<<: *common-settings
auth:
build:
dockerfile: ./services/target/auth/Dockerfile
args:
<<: *common-args
container_name: gramax-auth
restart: unless-stopped
depends_on: [api-gateway]
environment:
- PORT=80
- BASE_URL=/
- GITHUB_CLIENT_ID=Iv1.f934a5b0274ca2d5
- GITHUB_CLIENT_SECRET=e2d7199a4837bb7e33f6a449fd98ef2d5470eb64
- GITHUB_REDIRECT_URI=${GRAMAX_SITE_HTTP_PROTOCOL:-http}://${GRAMAX_SITE_URL:-localhost}/-server/auth/github
ports: [9006:80]
<<: *common-settings
review:
build:
dockerfile: ./services/target/review/Dockerfile
args:
<<: *common-args
container_name: gramax-review
restart: unless-stopped
depends_on:
- api-gateway
- storage
volumes:
- review:/app/docs
environment:
- PORT=80
- BASE_URL=/
- ACCESS_TOKEN=test123
- REVIEW_REPS_PATH=/app/docs
- CURRENT_SERVER_DOMAIN=${GRAMAX_SITE_URL:-localhost}/-server/review
- ENTERPRISE_SOURCE_USER=gramax
- ENTERPRISE_SOURCE_TYPE=gitea
- ENTERPRISE_SOURCE_DOMAIN=${GRAMAX_SITE_URL:-localhost}/-server/storage
- ENTERPRISE_GIT_SERVER_TOKEN=${GRAMAX_SERVICE_GITEA_ADMIN_TOKEN:-f283c0cc7e77aa703d29f70882938db0f440ab05}
- ENTERPRISE_SOURCE_REVIEWER_TOKEN=${GRAMAX_SERVICE_GITEA_REVIEWER_TOKEN:-05edb9997484d55a04b59405fdc9fa49b06e5ec1}
ports: [9007:80]
<<: *common-settings
storage:
image: gitea/gitea:1.20.4
container_name: gramax-storage
restart: unless-stopped
depends_on: [api-gateway]
environment:
- USER_UID=1000
- USER_GID=1000
volumes:
- storage:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports: [9008:3000]
networks: [gramax]
<<: *common-settings
networks:
gramax:
name: gramax
driver: bridge
volumes:
review:
name: gramax-review
storage:
name: gramax-storage