docker_compose_remotely.yml
services:
postgres:
image: postgres
restart: unless-stopped
volumes:
- ./pg_data:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=remotely
- POSTGRES_USER=remotely
remotely:
image: immybot/remotely:latest
restart: unless-stopped
ports:
- 38192:5000
environment:
- ASPNETCORE_ENVIRONMENT=Production
- ASPNETCORE_HTTP_PORTS=5000
- Remotely_ApplicationOptions__DbProvider=PostgreSQL
- Remotely_ConnectionStrings__PostgreSQL=Host=postgres;Database=remotely;Username=remotely;Password=${POSTGRES_PASSWORD};
volumes:
- ./remotely_data:/app/AppData
depends_on:
- postgresAhora crea .env con una contraseña aleatoria de Postgres:
create_env_file.sh
echo "POSTGRES_PASSWORD=$(pwgen 30 1)" >> .envLuego ejecuta docker-compose up -d para iniciar los servicios. Ahora puedes acceder a Remotely en http://localhost:38192.
Si este artículo te ha ayudado, considera invitarme a un café o hacer una donación vía PayPal para apoyar la investigación y publicación de nuevos artículos en TechOverflow