https://github.com/ulbora/docker_ulbora_image_service
Image Service
https://github.com/ulbora/docker_ulbora_image_service
Last synced: about 1 month ago
JSON representation
Image Service
- Host: GitHub
- URL: https://github.com/ulbora/docker_ulbora_image_service
- Owner: Ulbora
- Created: 2018-01-28T19:41:10.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-12T20:15:00.000Z (over 6 years ago)
- Last Synced: 2025-01-26T13:22:32.647Z (3 months ago)
- Language: Dockerfile
- Size: 2.93 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker Ulbora Image Service
- 1.0.4, latest[ (Dockerfile)](https://github.com/Ulbora/docker_ulbora_image_service/blob/master/Dockerfile)This is Docker Image server running on Alpine
# Running
```
docker run -p some-port:8080 --name images \
--env DATABASE_USER_NAME=some-user-name \
--env DATABASE_USER_PASSWORD=some-user-password \
--env DATABASE_NAME=some-db-name \
--env DATABASE_POOL_SIZE=pool-size \
--env AUTHENTICATION_SERVICE=auth-server \
--env PORT=8080 \
--link some-mysql-container-name:mysql -it \
ulboralabs/images sh
```
#### or as a daemon (suggested)
```
docker run -p some-port:8080 --name images \
--env DATABASE_USER_NAME=some-user-name \
--env DATABASE_USER_PASSWORD=some-user-password \
--env DATABASE_NAME=some-db-name \
--env DATABASE_POOL_SIZE=pool-size \
--env AUTHENTICATION_SERVICE=auth-server \
--env PORT=8080 \
--link some-mysql-container-name:mysql -d \
ulboralabs/images sh
```
# Note
### The link to your mysql container should always end with :mysql as shown above
```
--link some-mysql-container-name:mysql
```
The :mysql is an alias that produces an environment variable named MYSQL_PORT_3306_TCP_ADDR inside the web container.
If :mysql were to be changed to :mysqldb, then the environment variable would be named MYSQLDB_PORT_3306_TCP_ADDR and
the User Micro Service would not connect the the mysql database. The User Micro Service needs the environment variable to be
named MYSQL_PORT_3306_TCP_ADDR.### Ports on the host machine should be different for each container
#### Example:
#### -p host-port-number:container-port-number
```
-p 3001:8080
-p 3002:8080
-p 3003:8080
```# Connect to running instance
```
docker exec -it ulboralabs/images sh
```