Hello:
Is there a reason I am not able to run a database with the okteto cli? Below is my okteto manifest file for a postgres database. Whenever I run this, I get an error with the command. I have tried different notations for the command but it still does not work. I am able to run and connect to a postgress database when I run it locally on my machine with docker-compose. The docker-compose file does not have a command, yet it still works.
Am I missing something obvious here?
Okteto.yml file (does not work)
postgresql:
name: postgresql
image: postgres:14.12-bullseye
autocreate: true
command: ["sh","-c","postgres -c log_statement=all"]
volumes:
- /root/.vscode-server
securityContext:
runAsUser: 1000
capabilities:
add:
- SYS_PTRACE
forward:
- 5434:5432
persistentVolume:
enabled: true
environment:
SSH_AUTH_SOCK: /ssh-agent
POSTGRES_PASSWORD: example
POSTGRES_USER: example
docker-compose.yml file (works from my machine)
version: '3.9'
services:
db:
image: postgres:14.12-bullseye
restart: always
ports:
- 5432:5432
shm_size: 128mb
environment:
POSTGRES_USERNAME: example
POSTGRES_USER: example
POSTGRES_PASSWORD: example
Thanks,
Julio