lihua
5 years ago
2 changed files with 19 additions and 0 deletions
@ -0,0 +1,5 @@ |
|||||
|
FROM alpine:latest |
||||
|
ADD ./deviceIDServer /opt/deviceIDServer |
||||
|
EXPOSE 6000 |
||||
|
WORKDIR /opt |
||||
|
ENTRYPOINT ["./deviceIDServer"] |
@ -0,0 +1,14 @@ |
|||||
|
version: '2' |
||||
|
services: |
||||
|
deviceIDServer: |
||||
|
build: . |
||||
|
restart: always |
||||
|
container_name: "deviceIDServer" |
||||
|
volumes: |
||||
|
- ./config.json:/opt/config.json |
||||
|
ports: |
||||
|
- 6000:6000 |
||||
|
networks: |
||||
|
default: |
||||
|
external: |
||||
|
name: iotx_net |
Loading…
Reference in new issue