Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
VILLASweb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
17
Issues
17
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
2
Merge Requests
2
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
ACS
P
Public
VILLASframework
VILLASweb
Commits
2fbd71f2
Commit
2fbd71f2
authored
Apr 28, 2017
by
Markus Grigull
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add automated react build to docker-compose
parent
560713e9
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
4 deletions
+31
-4
.dockerignore
.dockerignore
+4
-0
Dockerfile
Dockerfile
+10
-0
docker-compose.yml
docker-compose.yml
+17
-4
No files found.
.dockerignore
0 → 100644
View file @
2fbd71f2
node_modules/
nginx/
doc/
build/
Dockerfile
0 → 100644
View file @
2fbd71f2
FROM
node:latest
RUN
mkdir
/react
RUN
mkdir
/result
VOLUME
/result
WORKDIR
/react
CMD
npm install && npm run build && cp -R /react/build/* /result/
docker-compose.yml
View file @
2fbd71f2
version
:
"
2"
services
:
frontend
:
webserver
:
image
:
nginx:stable
volumes
:
-
./nginx:/etc/nginx/conf.d/
-
./build
:/www
-
website-volume
:/www
links
:
-
backend
ports
:
-
"
80:80"
-
"
443:443"
restart
:
always
frontend
:
build
:
.
volumes
:
-
./:/react
-
website-volume:/result
backend
:
image
:
villasweb-backend
...
...
@@ -18,8 +25,14 @@ services:
-
database
environment
:
-
NODE_ENV=production
restart
:
always
database
:
image
:
mongo:latest
# volumes:
# - /opt/database:/data/db
volumes
:
-
data-volume:/data/db
restart
:
always
volumes
:
data-volume
:
website-volume
:
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment