Jalanin container penting (suka lupa): Difference between revisions
Appearance
Created page with "'''Redis''' <syntaxhighlight lang=bash> docker run -d \ --name redis-container \ -p 6379:6379 \ -e REDIS_PASSWORD=password \ redis \ redis-server --requirepass password </syntaxhighlight>" |
No edit summary |
||
| Line 7: | Line 7: | ||
redis \ | redis \ | ||
redis-server --requirepass password | redis-server --requirepass password | ||
</syntaxhighlight> | |||
'''Postgres''' | |||
<syntaxhighlight lang=bash> | |||
podman run --name postgres -e POSTGRES_USER=username -e POSTGRES_PASSWORD=password -p 5432:5432 -v /var/lib/data -d postgres | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 01:19, 5 August 2025
Redis
docker run -d \
--name redis-container \
-p 6379:6379 \
-e REDIS_PASSWORD=password \
redis \
redis-server --requirepass password
Postgres
podman run --name postgres -e POSTGRES_USER=username -e POSTGRES_PASSWORD=password -p 5432:5432 -v /var/lib/data -d postgres