Jalanin container penting (suka lupa): Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 11: | Line 11: | ||
'''Postgres''' | '''Postgres''' | ||
<syntaxhighlight lang=bash> | <syntaxhighlight lang=bash> | ||
podman run --name | podman run --name ms-users \ | ||
-e POSTGRES_USER=postgres \ | |||
-e POSTGRES_PASSWORD=postgres \ | |||
-p 5434:5432 \ | |||
-d docker.io/library/postgres | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 01:21, 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 ms-users \
-e POSTGRES_USER=postgres \
-e POSTGRES_PASSWORD=postgres \
-p 5434:5432 \
-d docker.io/library/postgres