-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
120 lines (113 loc) · 2.87 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
version: "3.7"
services:
basic-math-server:
container_name: openapi-basic-math
image: x-openapi-basic-math
build:
context: ./basic-math-server
network: host
restart: on-failure
volumes:
- ./basic-math-server/public:/opt/app/public
environment:
PORT: 1000
expose:
- 1000
networks:
- xopenapi
element-table-server:
container_name: openapi-element-table
image: x-openapi-element-table
build:
context: ./element-table-server
network: host
restart: on-failure
volumes:
- ./element-table-server/public:/opt/app/public
environment:
PORT: 1000
expose:
- 1000
networks:
- xopenapi
xopenapi-documentation:
container_name: openapi-documentation
depends_on:
- element-table-server
- basic-math-server
# - xopenapi-cms
image: x-openapi-documentation
build:
context: ./x-openapi-documentation
target: development
restart: on-failure
volumes:
- ./x-openapi-documentation/config:/app/dev/config
- ./x-openapi-documentation/server:/app/dev/server
- ./x-openapi-documentation/types:/app/dev/types
- ./x-openapi-documentation/pages:/app/dev/pages
- ./x-openapi-documentation/utils:/app/dev/utils
env_file:
- .env
environment:
ADMIN_PANEL_TOKEN: ${ADMIN_PANEL_TOKEN}
ADMIN_PANEL_URL: ${ADMIN_PANEL_URL}
ports:
- ${DOCUMENT_PORT}:3000
networks:
- xopenapi
extra_hosts:
- "host.docker.internal:host-gateway"
# xopenapi-cms:
# container_name: openapi-cms
# depends_on:
# - xopenapi-database
# # platform: linux/arm64/v8
# image: x-openapi-cms
# build:
# context: ./document-cms
# network: host
# restart: unless-stopped
# volumes:
# - ./document-cms:/opt/app
# env_file:
# - .env
# environment:
# HOST: 0.0.0.0
# PORT: 1337
# DATABASE_CLIENT: ${DATABASE_CLIENT}
# DATABASE_NAME: ${DATABASE_NAME}
# DATABASE_HOST: ${DATABASE_HOST}
# DATABASE_PORT: ${DATABASE_PORT}
# DATABASE_USERNAME: ${DATABASE_USERNAME}
# DATABASE_PASSWORD: ${DATABASE_PASSWORD}
# JWT_SECRET: ${JWT_SECRET}
# ADMIN_JWT_SECRET: ${ADMIN_JWT_SECRET}
# APP_KEYS: ${APP_KEYS}
# NODE_ENV: ${NODE_ENV}
# ports:
# - ${CMS_PORT}:1337
# networks:
# - xopenapi
xopenapi-database:
container_name: openapi-database
image: postgres:14
volumes:
- xopenapi-database:/var/lib/postgresql/data
- /etc/localtime:/etc/localtime
env_file:
- .env
environment:
POSTGRES_DB: ${DATABASE_NAME}
POSTGRES_USER: ${DATABASE_USERNAME}
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
expose:
- 5432
ports:
- 2235:5432
networks:
- xopenapi
networks:
xopenapi:
volumes:
xopenapi-database: