https://github.com/cspray/docker-compose-dates
A Docker Compose configuration showing dates in environment values being handled differently
https://github.com/cspray/docker-compose-dates
Last synced: 5 months ago
JSON representation
A Docker Compose configuration showing dates in environment values being handled differently
- Host: GitHub
- URL: https://github.com/cspray/docker-compose-dates
- Owner: cspray
- Created: 2023-05-01T14:37:19.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-01T14:37:37.000Z (about 3 years ago)
- Last Synced: 2025-03-24T00:54:27.411Z (about 1 year ago)
- Language: Makefile
- Size: 32.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker Compose Date Interpretations
A docker-compose.yml configuration showing that unquoted date values set in environment variables are interpreted into a complete date time.

_An example of running the available Makefile command showing different values based on quotes being present._
## Running this on your own system
You can run this example on your own system. Before following the steps below please ensure you're running an updated version of Docker and Docker Compose.
At the time of creating this repo the author had the following versions:
- Docker version 23.0.5, build bc4487a
- Docker Compose version v2.17.3
1. Clone this repo: `git clone git@github.com/cspray/docker-compose-dates`
2. Run the make command `make show`
If you don't have `make` available on your system you can run the following commands separately:
docker compose run -it --rm non-quoted-date env | grep TEST_VAR
docker compose run -it --rm quoted-date env | grep TEST_VAR