This is an old revision of the document!
Overview
Docker configuration is done in the YML files, where we should describe what we want and how that should be linked in regards to:
- Storage
- Network
- Ports
Here is example of such configuration of Mongo database container:
incidenttool_mongo: image: mongo volumes: - incidenttool_mongodb:/data/db - incidenttool_mongodb_config:/data/configdb - /apphome/backup/bulk_copied:/data/db/dump ports: - 27017:27017 networks: - incidenttool environment: - "TZ=UTC" - "MONGO_INITDB_ROOT_USERNAME=root" - "MONGO_INITDB_ROOT_PASSWORD=password" volumes: incidenttool_mongodb: incidenttool_mongodb_config: networks: incidenttool: driver: bridge ipam: config: - subnet: 172.31.254.0/28
In case of changes, you have to restart the container is follows:
docker-compose -p production up -d incidenttool_mongo