They've officially release their full v2 docker image, so it can now be accessed by using the :beta tag!
Your docker-compose.yml file should have this as the n8n service:
n8n:
restart: always
ports:
- 5678:5678
environment:
- N8N_HOST=${SUBDOMAIN}.${DOMAIN_NAME}
- N8N_PORT=5678
- N8N_PROTOCOL=https
- NODE_ENV=production
- GENERIC_TIMEZONE=${GENERIC_TIMEZONE}
- EXECUTIONS_TIMEOUT=3600
volumes:
- n8n_data:/home/node/.n8n
- ${DATA_FOLDER}/local_files:/files