Docker
How to install Docker (Community edition) on Windows server (2019 or above)
- Download Docker for Window Installer
- Double click the Docker for Window Installer, installation will start
- After finished, click OK
- Double click the
Docker desktop app
- Click the edit button
- Click Resources
- Remain 2 CPU and 4GB Memory for windows server e.g. (If total have 8 CPU and 16GB RAM, assign 6CPU and 12GB RAM to Docker)
- Click Apply & Restart
How to configure host table, modify docker-compose.yml:
- Add the following code into the docker-compose.yml file after the port configurations
ports:
- 443:443
extra_hosts:
- "internal.company.com:192.168.0.100"
- "internal2.company.com:192.168.0.101"
警告
Spacing are very important for yml file, please keep the same indention in the sample.
- Add hostname mappings based on your case
- Stop Bookings ONE by running command
docker-compose down
- Update and restart Bookings ONE by running command
docker-compose up
How to configure shared drive?
- Modify docker-compose.yml, replace the volumes setting by
- shared-drive:/etc/bookings-one
- Add the following code at the end of the yml file
volumes:
shared-drive:
driver: local
driver_opts:
type: cifs
device: "\\\\{{SHARE_DRIVE_SERVER}}\\bookings-one-shared"
o: addr={{SHARE_DRIVE_SERVER}},user={{SHARE_DRIVE_USERNAME}},password={{SHARE_DRIVE_PASSWORD}},file_mode=0777,dir_mode=0777
- Fill in
{{SHARE_DRIVE_SERVER}}
with shared drive address - Fill in
{{SHARE_DRIVE_USERNAME}}
and{{SHARE_DRIVE_PASSWORD}}
with corresponding username and password