alessandro trinca tornidor commited on
Commit
115b856
·
1 Parent(s): 0802362

doc: update README.md with the right execution order for docker build, updated env variables

Browse files
Files changed (1) hide show
  1. README.md +4 -2
README.md CHANGED
@@ -99,13 +99,15 @@ To build the project with docker:
99
 
100
  ```
101
  DOCKER_VERSION=$(grep version pyproject.toml |head -1|cut -d'=' -f2|cut -d'"' -f2);
102
- docker build . --progress=plain --tag registry.gitlab.com/aletrn/my_ghost_writer:${DOCKER_VERSION}
103
  docker build . -f dockerfiles/dockerfile_my_ghost_writer_base --progress=plain --tag registry.gitlab.com/aletrn/my_ghost_writer_base:${DOCKER_VERSION}
 
104
  ```
105
 
106
  To run the docker container (you still need to configure the mongodb endpoint to use the single my_ghost_writer container):
107
  ```
108
- docker run -d --name my_ghost_writer -p 7860:7860 -e WORDSAPI_KEY=${WORDSAPI_KEY} -e ME_CONFIG_MONGODB_USE_OK=TRUE registry.gitlab.com/aletrn/my_ghost_writer:0.4.0; docker logs -f my_ghost_writer
 
 
109
  ```
110
 
111
  To source more than one env variable, you can use this command:
 
99
 
100
  ```
101
  DOCKER_VERSION=$(grep version pyproject.toml |head -1|cut -d'=' -f2|cut -d'"' -f2);
 
102
  docker build . -f dockerfiles/dockerfile_my_ghost_writer_base --progress=plain --tag registry.gitlab.com/aletrn/my_ghost_writer_base:${DOCKER_VERSION}
103
+ docker build . --progress=plain --tag registry.gitlab.com/aletrn/my_ghost_writer:${DOCKER_VERSION}
104
  ```
105
 
106
  To run the docker container (you still need to configure the mongodb endpoint to use the single my_ghost_writer container):
107
  ```
108
+ docker run -d --name my_ghost_writer -p 7860:7860 -e ME_CONFIG_MONGODB_USE_OK=FALSE \
109
+ -e ALLOWED_ORIGIN=http://localhost:7860,http://localhost:8000 \
110
+ registry.gitlab.com/aletrn/my_ghost_writer:${DOCKER_VERSION}; docker logs -f my_ghost_writer
111
  ```
112
 
113
  To source more than one env variable, you can use this command: