-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
181 lines (169 loc) · 4.24 KB
/
Copy pathdocker-compose.yml
File metadata and controls
181 lines (169 loc) · 4.24 KB
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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
version: "3.9"
services:
# production starts here
bubify-frontend-production:
profiles:
- production
container_name: bubify-frontend
build:
context: ./frontend
dockerfile: Dockerfile.production
ports:
- "80:80"
- "443:443"
volumes:
- ./frontend:/home/bubify/frontend
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/default:/etc/nginx/sites-enabled/default
# Change to your own certficate. Default is used for testing
# with localhost
#- my_domain.crt:/home/bubify/ssl.crt
#- my_domain.ssl:/home/bubify/ssl.key
environment:
- AU_BACKEND_HOST
- AU_FRONTEND_HOST
- AU_APP_API
- AU_APP_WEBSOCKET
- BACKEND_INTERNAL
- NODE_OPTIONS
bubify-backend-production:
profiles:
- production
container_name: bubify-backend
depends_on:
- mysql
build:
context: ./backend
dockerfile: Dockerfile.production
ports:
- "8900:8900"
volumes:
- backend-au_backups:/home/bubify/au_backups
- backend-profile_pictures:/home/bubify/profile_pictures
- backend-target:/home/bubify/backend/target
- backend-m2:/home/bubify/.m2
- ./backend:/home/bubify/backend
environment:
- AU_BACKEND_HOST
- AU_FRONTEND_HOST
- AU_APP_API
- AU_APP_WEBSOCKET
- AU_GITHUB_ORG
- AU_GITHUB_USER
- AU_GITHUB_USER_SECRET
- AU_GITHUB_CLIENT_ID
- AU_GITHUB_CLIENT_SECRET
- AU_DB_HOST
- AU_DB_PORT
- AU_DB_USER
- AU_DB_PASSWORD
- PRODUCTION
# development starts here
bubify-frontend:
profiles:
- development
container_name: bubify-frontend
build:
context: ./frontend
dockerfile: Dockerfile.development
ports:
- "3000:3000"
volumes:
- ./frontend:/home/bubify/frontend
environment:
- AU_BACKEND_HOST
- AU_FRONTEND_HOST
- AU_APP_API
- AU_APP_WEBSOCKET
- NODE_OPTIONS
bubify-backend:
profiles:
- development
container_name: bubify-backend
depends_on:
- mysql
build:
context: ./backend
dockerfile: Dockerfile.development
ports:
- "8900:8900"
- "5005:5005"
volumes:
- backend-au_backups:/home/bubify/au_backups
- backend-profile_pictures:/home/bubify/profile_pictures
- backend-target:/home/bubify/backend/target
- backend-m2:/home/bubify/.m2
- ./backend:/home/bubify/backend
environment:
- AU_BACKEND_HOST
- AU_FRONTEND_HOST
- AU_APP_API
- AU_APP_WEBSOCKET
- AU_DB_HOST
- AU_DB_PORT
- AU_DB_USER
- AU_DB_PASSWORD
- AU_GITHUB_ORG
- AU_GITHUB_USER
- AU_GITHUB_USER_SECRET
- AU_GITHUB_CLIENT_ID
- AU_GITHUB_CLIENT_SECRET
# testing starts here
bubify-backend-testing:
profiles:
- testing
container_name: bubify-backend-testing
build:
context: ./backend
dockerfile: Dockerfile.testing
ports:
- "8900:8900"
volumes:
- backend-au_backups:/home/bubify/au_backups
- backend-profile_pictures:/home/bubify/profile_pictures
- backend-target:/home/bubify/backend/target
- backend-m2:/home/bubify/.m2
- ./backend:/home/bubify/backend
environment:
- AU_BACKEND_HOST
- AU_FRONTEND_HOST
- AU_APP_API
- AU_APP_WEBSOCKET
- AU_DB_PORT
- AU_DB_USER
- AU_DB_PASSWORD
- AU_GITHUB_ORG
- AU_GITHUB_USER
- AU_GITHUB_USER_SECRET
- AU_GITHUB_CLIENT_ID
- AU_GITHUB_CLIENT_SECRET
mysql:
profiles:
- production
- development
container_name: bubify-mysql
image: mysql/mysql-server:latest
volumes:
- mysql-db:/var/lib/mysql
restart: unless-stopped
environment:
- MYSQL_DATABASE
- MYSQL_USER
- MYSQL_PASSWORD
- MYSQL_ROOT_PASSWORD=root
- TZ=Europe/Stockholm
volumes:
mysql-db:
name: bubify-mysql-db
frontend-build:
name: bubify-frontend-build
frontend-node_modules:
name: bubify-frontend-node_modules
backend-profile_pictures:
name: bubify-backend-profile_pictures
backend-au_backups:
name: bubify-backend-au_backups
backend-target:
name: bubify-target
backend-m2:
name: bubify-backend-m2