mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-23 01:20:24 +03:00
Added docker-related files
This commit is contained in:
parent
b008c37a5b
commit
853212b419
6 changed files with 7961 additions and 0 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -20,3 +20,5 @@ package-lock.json
|
||||||
npm-debug.log*
|
npm-debug.log*
|
||||||
yarn-debug.log*
|
yarn-debug.log*
|
||||||
yarn-error.log*
|
yarn-error.log*
|
||||||
|
|
||||||
|
docker-compose.override.yml
|
||||||
|
|
12
Dockerfile
Normal file
12
Dockerfile
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
FROM node:10.4.1-alpine
|
||||||
|
MAINTAINER Alejandro Celaya <alejandro@alejandrocelaya.com>
|
||||||
|
|
||||||
|
# Install yarn
|
||||||
|
RUN apk add --no-cache --virtual yarn
|
||||||
|
|
||||||
|
# Make home dir writable by anyone
|
||||||
|
RUN chmod 777 /home
|
||||||
|
|
||||||
|
CMD cd /home/shlink/www && \
|
||||||
|
yarn install && \
|
||||||
|
yarn start
|
8
docker-compose.override.yml.dist
Normal file
8
docker-compose.override.yml.dist
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
version: '3'
|
||||||
|
|
||||||
|
services:
|
||||||
|
shlink_web_client_node:
|
||||||
|
user: 1000:1000
|
||||||
|
volumes:
|
||||||
|
- /etc/passwd:/etc/passwd:ro
|
||||||
|
- /etc/group:/etc/group:ro
|
13
docker-compose.yml
Normal file
13
docker-compose.yml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
version: '3'
|
||||||
|
|
||||||
|
services:
|
||||||
|
shlink_web_client_node:
|
||||||
|
container_name: shlink_web_client_node
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: ./Dockerfile
|
||||||
|
volumes:
|
||||||
|
- ./:/home/shlink/www
|
||||||
|
ports:
|
||||||
|
- "3000:3000"
|
||||||
|
- "56745:56745"
|
2
indocker
Executable file
2
indocker
Executable file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
docker exec -it shlink_web_client_node /bin/sh -c "cd /home/shlink/www && $*"
|
Loading…
Reference in a new issue