I don’t know why the below docker-compose does not work in okteto.
It always shows
504 Gateway Time-out
---
nginx
However, it works great in my local computer.
version: "3.9"
services:
wordpress:
image: wordpress:latest
ports:
- 8080:80
restart: always
environment:
- WORDPRESS_DB_HOST=1.2.3.4
- WORDPRESS_DB_USER=root
- WORDPRESS_DB_PASSWORD=root
- WORDPRESS_DB_NAME=wordpress_learning_development
volumes:
- wp-data:/var/www/html
volumes:
wp-data: