-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added docker container persistence using volume at /data
- Loading branch information
Showing
3 changed files
with
28 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,14 +3,15 @@ FROM alpine:latest | |
LABEL maintainer="[email protected]" | ||
|
||
# Install Apache & Bash | ||
RUN apk update && apk add --no-cache apache2 bash | ||
RUN apk update \ | ||
&& apk add --no-cache apache2 bash | ||
|
||
# Suppress the ServerName warning | ||
RUN echo "ServerName localhost" >> /etc/apache2/httpd.conf | ||
RUN echo "ServerName localhost" >> /etc/apache2/httpd.conf \ | ||
&& mkdir /app \ | ||
&& mkdir /data | ||
|
||
COPY entrypoint.sh /entrypoint.sh | ||
COPY ntos /var/www/localhost/htdocs/ | ||
|
||
EXPOSE 80 | ||
COPY ntos /app | ||
|
||
ENTRYPOINT ["/bin/bash", "/entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
services: | ||
ntos-server: | ||
image: test:latest | ||
#image: dselen/ntos-server:latest | ||
container_name: ntos-server | ||
restart: unless-stopped | ||
ports: | ||
- 8080:80/tcp | ||
volumes: | ||
- ntos_data:/data | ||
volumes: | ||
ntos_data: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters