![]() For this, the volume key in the service configuration defines the path where the specified volume should be mounted in the container.Īfter you have defined your configuration in a Docker Compose file, you can start the whole system by executing the following command: ![]() The ports are configured with the "HOST_PORT:CONTAINER_PORT" syntax.ĭocker volumes provide a way of storing the data across containers and prevent data loss when removing a container. With the ports key, it is possible to expose ports from the container to your host machine in order to access the service. The depends_on key defines which other services the service depends on and ensures that a network between the containers will be built. ![]() # Version of docker-compose version : " 3" services : db : image : postgres:9.6 environment : POSTGRES_USER : pspdfkit POSTGRES_PASSWORD : password POSTGRES_DB : pspdfkit POSTGRES_INITDB_ARGS : -data-checksums PGDATA : /var/lib/postgresql/data/pgdata volumes : - pgdata:/var/lib/postgresql/data pspdfkit : image : " pspdfkit/pspdfkit:latest" environment : PGUSER : pspdfkit PGPASSWORD : password PGDATABASE : pspdfkit PGHOST : db PGPORT : 5432 # Activation key for your PSPDFKit Server installation.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |